[pypy-commit] cffi default: Document this
arigo
noreply at buildbot.pypy.org
Sun Jul 28 00:22:33 CEST 2013
Author: Armin Rigo <arigo at tunes.org>
Branch:
Changeset: r1296:9a7fc13aa01f
Date: 2013-07-28 00:22 +0200
http://bitbucket.org/cffi/cffi/changeset/9a7fc13aa01f/
Log: Document this
diff --git a/doc/source/index.rst b/doc/source/index.rst
--- a/doc/source/index.rst
+++ b/doc/source/index.rst
@@ -1409,8 +1409,9 @@
cdata object that is a "view" of all items from ``start`` to ``stop``.
It is a cdata of type "array" (so e.g. passing it as an argument to a
C function would just convert it to a pointer to the ``start`` item).
- It makes cdata's of type "array" behave more like a Python list, but
- as with indexing, negative bounds mean really negative indices, like in
+ This makes cdata's of type "array" behave more like a Python list, but
+ ``start`` and ``stop`` are not optional and a ``step`` is not supported.
+ As with indexing, negative bounds mean really negative indices, like in
C. As for slice assignment, it accepts any iterable, including a list
of items or another array-like cdata object, but the length must match.
(Note that this behavior differs from initialization: e.g. if you pass
More information about the pypy-commit
mailing list