[pypy-commit] cffi default: Add a reminder.

arigo noreply at buildbot.pypy.org
Fri Jul 13 11:06:44 CEST 2012


Author: Armin Rigo <arigo at tunes.org>
Branch: 
Changeset: r631:7885fd15f819
Date: 2012-07-13 11:06 +0200
http://bitbucket.org/cffi/cffi/changeset/7885fd15f819/

Log:	Add a reminder.

diff --git a/doc/source/index.rst b/doc/source/index.rst
--- a/doc/source/index.rst
+++ b/doc/source/index.rst
@@ -701,7 +701,9 @@
 the array.  Getting a buffer is useful because you can read from it
 without an extra copy, or write into it to change the original value;
 you can use for example ``file.write()`` and ``file.readinto()`` with
-such a buffer (for files opened in binary mode).
+such a buffer (for files opened in binary mode).  (Remember that like in
+C, you use ``array + index`` to get the pointer to the index'th item of
+an array.)
 
 ``ffi.typeof("C type" or cdata object)``: return an object of type
 ``<ctype>`` corresponding to the parsed string, or to the C type of the


More information about the pypy-commit mailing list