summaryrefslogtreecommitdiff
path: root/Include
diff options
context:
space:
mode:
authorMark Dickinson <mdickinson@enthought.com>2012-11-17 19:18:10 +0000
committerMark Dickinson <mdickinson@enthought.com>2012-11-17 19:18:10 +0000
commit64b904ca555bd6fe7ce0eae5b24d5d525b82d040 (patch)
treee157dfee6200383efd98d84a01ab280c17c087d6 /Include
parentb7c3fc8ba1253d2c0efc8cb988cae8d7d5ec177a (diff)
downloadcpython-64b904ca555bd6fe7ce0eae5b24d5d525b82d040.tar.gz
Issue #16451: Refactor to remove duplication between range and slice in slice index computations.
Diffstat (limited to 'Include')
-rw-r--r--Include/sliceobject.h3
1 files changed, 3 insertions, 0 deletions
diff --git a/Include/sliceobject.h b/Include/sliceobject.h
index 8bec17909d..f7ee90c3cc 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);