Author: Armin Rigo <[email protected]>
Branch: 
Changeset: r2706:989baa0a3b77
Date: 2016-06-03 16:39 +0200
http://bitbucket.org/cffi/cffi/changeset/989baa0a3b77/

Log:    Add a warning

diff --git a/doc/source/ref.rst b/doc/source/ref.rst
--- a/doc/source/ref.rst
+++ b/doc/source/ref.rst
@@ -189,6 +189,9 @@
 the call.
 
 *New in version 1.7:* the python_buffer can be a bytearray object.
+Be careful: if the bytearray gets resized (e.g. its ``.append()``
+method is called), then the ``<cdata>`` object will point to freed
+memory and must not be used any more.
 
 
 ffi.memmove()
_______________________________________________
pypy-commit mailing list
[email protected]
https://mail.python.org/mailman/listinfo/pypy-commit

Reply via email to