summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorArmin Rigo <arigo@tunes.org>2013-12-08 12:31:58 +0100
committerArmin Rigo <arigo@tunes.org>2013-12-08 12:31:58 +0100
commit5460111de8f263d846fd01f189ece24132cd5799 (patch)
tree62358db9b62474a8d1b2b0c14ef1e30cdb160aa5
parent9805748b1af1ee029f207eb6fbb9921d564d4022 (diff)
downloadcffi-5460111de8f263d846fd01f189ece24132cd5799.tar.gz
Put back the big warning in italic.
-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 9fbd5ae..3b9d87b 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.
+*Calling ffi.from_handle(p) is invalid and will likely crash if
+the cdata object returned by new_handle() is not kept alive!*
*New in version 0.7.*
Note that ``from_handle()`` conceptually works like this: it searches in