Author: Armin Rigo <[email protected]>
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
_______________________________________________
pypy-commit mailing list
[email protected]
http://mail.python.org/mailman/listinfo/pypy-commit

Reply via email to