[pypy-commit] cffi default: An extra pair of lines in the documentation

arigo noreply at buildbot.pypy.org
Sun Dec 8 11:40:08 CET 2013


Author: Armin Rigo <arigo at tunes.org>
Branch: 
Changeset: r1440:3614850aa890
Date: 2013-12-08 11:39 +0100
http://bitbucket.org/cffi/cffi/changeset/3614850aa890/

Log:	An extra pair of lines in the documentation

diff --git a/doc/source/index.rst b/doc/source/index.rst
--- a/doc/source/index.rst
+++ b/doc/source/index.rst
@@ -1266,6 +1266,8 @@
 can pass it around to C functions or store it into C structures.  Later,
 you can use ``ffi.from_handle(p)`` to retrive the original
 ``python_object`` from a value with the same ``void *`` pointer.  The
+cdata object returned by ``new_handle()`` must be kept alive (and, in
+turn, it keeps alive the ``python_object`` too).  In other words, the
 cdata object returned by ``new_handle()`` has *ownership*, in the same
 sense as ``ffi.new()`` or ``ffi.gc()``: the association ``void * ->
 python_object`` is only valid as long as *this* exact cdata returned by


More information about the pypy-commit mailing list