Author: Armin Rigo <[email protected]> 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 _______________________________________________ pypy-commit mailing list [email protected] https://mail.python.org/mailman/listinfo/pypy-commit
