[Python-checkins] r87171 - python/branches/py3k/Doc/c-api/slice.rst
martin.v.loewis
python-checkins at python.org
Sat Dec 11 19:17:22 CET 2010
Author: martin.v.loewis
Date: Sat Dec 11 19:17:22 2010
New Revision: 87171
Log:
Adjust PySlice_GetIndices documentation to signature change.
Modified:
python/branches/py3k/Doc/c-api/slice.rst
Modified: python/branches/py3k/Doc/c-api/slice.rst
==============================================================================
--- python/branches/py3k/Doc/c-api/slice.rst (original)
+++ python/branches/py3k/Doc/c-api/slice.rst Sat Dec 11 19:17:22 2010
@@ -26,7 +26,7 @@
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 @@
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
More information about the Python-checkins
mailing list