Author: Armin Rigo <ar...@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 _______________________________________________ pypy-commit mailing list pypy-commit@python.org http://mail.python.org/mailman/listinfo/pypy-commit