summaryrefslogtreecommitdiff
path: root/doc
diff options
context:
space:
mode:
authorArmin Rigo <arigo@tunes.org>2013-12-08 11:39:57 +0100
committerArmin Rigo <arigo@tunes.org>2013-12-08 11:39:57 +0100
commit440da94b4c14e5f27424cc070739312250164b24 (patch)
treec7b09ead7c8fd5db5c4b2b8b7cb831071fbdac6b /doc
parentda008751e7407c5929a0833d57619e5d69c5b571 (diff)
downloadcffi-440da94b4c14e5f27424cc070739312250164b24.tar.gz
An extra pair of lines in the documentation
Diffstat (limited to 'doc')
-rw-r--r--doc/source/index.rst2
1 files changed, 2 insertions, 0 deletions
diff --git a/doc/source/index.rst b/doc/source/index.rst
index a5c2dd5..629f417 100644
--- a/doc/source/index.rst
+++ b/doc/source/index.rst
@@ -1266,6 +1266,8 @@ points in time, and using it in a ``with`` statement.
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