summaryrefslogtreecommitdiffstats
path: root/Include/sliceobject.h
diff options
context:
space:
mode:
authorMark Dickinson <mdickinson@enthought.com>2012-11-17 19:18:10 (GMT)
committerMark Dickinson <mdickinson@enthought.com>2012-11-17 19:18:10 (GMT)
commitffdb2c21b34253077001a0181c2fe1f4e4b2be15 (patch)
treeca28924eb9a650bfa14f85f6a91855cef84edf6d /Include/sliceobject.h
parentc3afba104aef5032e114b4f5cac0a3bbdfef2bba (diff)
downloadcpython-ffdb2c21b34253077001a0181c2fe1f4e4b2be15.zip
cpython-ffdb2c21b34253077001a0181c2fe1f4e4b2be15.tar.gz
cpython-ffdb2c21b34253077001a0181c2fe1f4e4b2be15.tar.bz2
Issue #16451: Refactor to remove duplication between range and slice in slice index computations.
Diffstat (limited to 'Include/sliceobject.h')
-rw-r--r--Include/sliceobject.h3
1 files changed, 3 insertions, 0 deletions
diff --git a/Include/sliceobject.h b/Include/sliceobject.h
index 8bec179..f7ee90c 100644
--- a/Include/sliceobject.h
+++ b/Include/sliceobject.h
@@ -34,6 +34,9 @@ PyAPI_FUNC(PyObject *) PySlice_New(PyObject* start, PyObject* stop,
PyObject* step);
#ifndef Py_LIMITED_API
PyAPI_FUNC(PyObject *) _PySlice_FromIndices(Py_ssize_t start, Py_ssize_t stop);
+PyAPI_FUNC(int) _PySlice_GetLongIndices(PySliceObject *self, PyObject *length,
+ PyObject **start_ptr, PyObject **stop_ptr,
+ PyObject **step_ptr);
#endif
PyAPI_FUNC(int) PySlice_GetIndices(PyObject *r, Py_ssize_t length,
Py_ssize_t *start, Py_ssize_t *stop, Py_ssize_t *step);