Author: Armin Rigo <[email protected]> Branch: Changeset: r1444:8d9e0e99b080 Date: 2013-12-08 12:31 +0100 http://bitbucket.org/cffi/cffi/changeset/8d9e0e99b080/
Log: Put back the big warning in italic. 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. +*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 _______________________________________________ pypy-commit mailing list [email protected] https://mail.python.org/mailman/listinfo/pypy-commit
