diff options
author | Martin v. Löwis <martin@v.loewis.de> | 2010-12-11 18:17:22 (GMT) |
---|---|---|
committer | Martin v. Löwis <martin@v.loewis.de> | 2010-12-11 18:17:22 (GMT) |
commit | dd5909725cf742574f5bd196c5ed338c43664457 (patch) | |
tree | 7db29e59377b192af38f1220ae42486dd3b90dbc /Doc | |
parent | cc9d237fe7e70d556def3b36fccb5f63d0e665d1 (diff) | |
download | cpython-dd5909725cf742574f5bd196c5ed338c43664457.zip cpython-dd5909725cf742574f5bd196c5ed338c43664457.tar.gz cpython-dd5909725cf742574f5bd196c5ed338c43664457.tar.bz2 |
Adjust PySlice_GetIndices documentation to signature change.
Diffstat (limited to 'Doc')
-rw-r--r-- | Doc/c-api/slice.rst | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/Doc/c-api/slice.rst b/Doc/c-api/slice.rst index 5f992f1..302091f 100644 --- a/Doc/c-api/slice.rst +++ b/Doc/c-api/slice.rst @@ -26,7 +26,7 @@ Slice Objects the new object could not be allocated. -.. c:function:: int PySlice_GetIndices(PySliceObject *slice, Py_ssize_t length, Py_ssize_t *start, Py_ssize_t *stop, Py_ssize_t *step) +.. c:function:: int PySlice_GetIndices(PyObject *slice, Py_ssize_t length, Py_ssize_t *start, Py_ssize_t *stop, Py_ssize_t *step) Retrieve the start, stop and step indices from the slice object *slice*, assuming a sequence of length *length*. Treats indices greater than @@ -39,7 +39,7 @@ Slice Objects You probably do not want to use this function. -.. c:function:: int PySlice_GetIndicesEx(PySliceObject *slice, Py_ssize_t length, Py_ssize_t *start, Py_ssize_t *stop, Py_ssize_t *step, Py_ssize_t *slicelength) +.. c:function:: int PySlice_GetIndicesEx(PyObject *slice, Py_ssize_t length, Py_ssize_t *start, Py_ssize_t *stop, Py_ssize_t *step, Py_ssize_t *slicelength) Usable replacement for :c:func:`PySlice_GetIndices`. Retrieve the start, stop, and step indices from the slice object *slice* assuming a sequence of |