[pypy-commit] cffi default: Document the changes

arigo noreply at buildbot.pypy.org
Thu Feb 7 20:03:52 CET 2013


Author: Armin Rigo <arigo at tunes.org>
Branch: 
Changeset: r1122:a44545d70be4
Date: 2013-01-10 10:03 +0100
http://bitbucket.org/cffi/cffi/changeset/a44545d70be4/

Log:	Document the changes

diff --git a/doc/source/index.rst b/doc/source/index.rst
--- a/doc/source/index.rst
+++ b/doc/source/index.rst
@@ -1097,6 +1097,12 @@
 - ``len(buf), buf[index], buf[index] = newchar``: access as a sequence
   of characters.
 
+.. versionchanged:: 0.5
+   The buffer object returned by ``ffi.buffer(cdata)`` keeps alive the
+   ``cdata`` object: if it was originally an owning cdata, then its
+   owned memory will not be freed as long as the buffer is alive.
+   Moreover buffer objects now support weakrefs to them.
+
 
 ``ffi.typeof("C type" or cdata object)``: return an object of type
 ``<ctype>`` corresponding to the parsed string, or to the C type of the


More information about the pypy-commit mailing list