[pypy-commit] cffi default: Make this point clearer here too.
arigo
noreply at buildbot.pypy.org
Wed Sep 19 15:05:15 CEST 2012
Author: Armin Rigo <arigo at tunes.org>
Branch:
Changeset: r948:54b1cb974cca
Date: 2012-09-19 15:05 +0200
http://bitbucket.org/cffi/cffi/changeset/54b1cb974cca/
Log: Make this point clearer here too.
diff --git a/doc/source/index.rst b/doc/source/index.rst
--- a/doc/source/index.rst
+++ b/doc/source/index.rst
@@ -613,7 +613,9 @@
long as needed. (This also applies if you immediately cast the returned
pointer to a pointer of a different type: only the original object has
ownership, so you must keep it alive. As soon as you forget it, then
-the casted pointer will point to garbage.) Example::
+the casted pointer will point to garbage! In other words, the ownership
+rules are attached to the *wrapper* cdata objects: they are not, and
+cannot, be attached to the underlying raw memory.) Example::
global_weakkeydict = weakref.WeakKeyDictionary()
More information about the pypy-commit
mailing list