Author: Armin Rigo <ar...@tunes.org>
Branch: 
Changeset: r3180:c25914172239
Date: 2019-01-08 09:21 +0100
http://bitbucket.org/cffi/cffi/changeset/c25914172239/

Log:    Implement a limited form of from_buffer-release() on pypy

diff --git a/doc/source/ref.rst b/doc/source/ref.rst
--- a/doc/source/ref.rst
+++ b/doc/source/ref.rst
@@ -629,7 +629,9 @@
 
 * on CPython, ``ffi.from_buffer(buf)`` locks the buffer, so ``ffi.release()``
   can be used to unlock it at a known time.  On PyPy, there is no locking
-  (so far) so this has no effect.
+  (so far); the effect of ``ffi.release()`` is limited to removing the link,
+  allowing the original buffer object to be garbage-collected even if the
+  cdata object stays alive.
 
 * on CPython this method has no effect (so far) on objects returned by
   ``ffi.new()``, because the memory is allocated inline with the cdata object
_______________________________________________
pypy-commit mailing list
pypy-commit@python.org
https://mail.python.org/mailman/listinfo/pypy-commit

Reply via email to