summaryrefslogtreecommitdiff
path: root/doc
diff options
context:
space:
mode:
authorArmin Rigo <arigo@tunes.org>2013-07-28 00:22:24 +0200
committerArmin Rigo <arigo@tunes.org>2013-07-28 00:22:24 +0200
commit2ddab014c53ec84caca9a6e0f2f093f87b19f68e (patch)
treece6a8e995dc462af432b34580339236800403c54 /doc
parentd7edbe1062992bbdcf9e30c80cd49cda7dde4092 (diff)
downloadcffi-2ddab014c53ec84caca9a6e0f2f093f87b19f68e.tar.gz
Document this
Diffstat (limited to 'doc')
-rw-r--r--doc/source/index.rst5
1 files changed, 3 insertions, 2 deletions
diff --git a/doc/source/index.rst b/doc/source/index.rst
index 76d56f3..2c11b1f 100644
--- a/doc/source/index.rst
+++ b/doc/source/index.rst
@@ -1409,8 +1409,9 @@ a pointer inside the Python string object.
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