diff options
author | Armin Rigo <arigo@tunes.org> | 2013-07-28 00:22:24 +0200 |
---|---|---|
committer | Armin Rigo <arigo@tunes.org> | 2013-07-28 00:22:24 +0200 |
commit | 2ddab014c53ec84caca9a6e0f2f093f87b19f68e (patch) | |
tree | ce6a8e995dc462af432b34580339236800403c54 /doc | |
parent | d7edbe1062992bbdcf9e30c80cd49cda7dde4092 (diff) | |
download | cffi-2ddab014c53ec84caca9a6e0f2f093f87b19f68e.tar.gz |
Document this
Diffstat (limited to 'doc')
-rw-r--r-- | doc/source/index.rst | 5 |
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 |