[pypy-commit] cffi default: Clarify this point in the docs
arigo
noreply at buildbot.pypy.org
Tue Mar 17 11:02:53 CET 2015
Author: Armin Rigo <arigo at tunes.org>
Branch:
Changeset: r1673:1e723dc022fe
Date: 2015-03-17 11:03 +0100
http://bitbucket.org/cffi/cffi/changeset/1e723dc022fe/
Log: Clarify this point in the docs
diff --git a/doc/source/index.rst b/doc/source/index.rst
--- a/doc/source/index.rst
+++ b/doc/source/index.rst
@@ -1260,7 +1260,8 @@
buffer interface. This is the opposite of ``ffi.buffer()``. It gives
a (read-write) reference to the existing data, not a copy; for this
reason, and for PyPy compatibility, it does not work with the built-in
-types str or unicode or bytearray. It is meant to be used on objects
+types str or unicode or bytearray (or buffers/memoryviews on them).
+It is meant to be used on objects
containing large quantities of raw data, like ``array.array`` or numpy
arrays. It supports both the old buffer API (in Python 2.x) and the
new memoryview API. The original object is kept alive (and, in case
More information about the pypy-commit
mailing list