[pypy-commit] cffi release-0.7: Add a warning
arigo
noreply at buildbot.pypy.org
Thu Aug 1 17:45:08 CEST 2013
Author: Armin Rigo <arigo at tunes.org>
Branch: release-0.7
Changeset: r1328:a1b0ea18224f
Date: 2013-08-01 17:44 +0200
http://bitbucket.org/cffi/cffi/changeset/a1b0ea18224f/
Log: Add a warning
diff --git a/doc/source/index.rst b/doc/source/index.rst
--- a/doc/source/index.rst
+++ b/doc/source/index.rst
@@ -1212,7 +1212,9 @@
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
-``new_handle()`` is alive. *New in version 0.7.*
+``new_handle()`` is alive. *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.*
.. "versionadded:: 0.7" --- inlined in the previous paragraph
More information about the pypy-commit
mailing list