summaryrefslogtreecommitdiff
path: root/Include/sliceobject.h
diff options
context:
space:
mode:
authorMichael W. Hudson <mwh@python.net>2002-06-11 10:55:12 +0000
committerMichael W. Hudson <mwh@python.net>2002-06-11 10:55:12 +0000
commit5efaf7eac8c1dbbf82a96dc5d9b87fddd5d17b58 (patch)
tree7358a0479ab98893ad5a5457ae0df328d0e60251 /Include/sliceobject.h
parentf90ae20354ceb501f0ba0b6459df17f1a8005a47 (diff)
downloadcpython-git-5efaf7eac8c1dbbf82a96dc5d9b87fddd5d17b58.tar.gz
This is my nearly two year old patch
[ 400998 ] experimental support for extended slicing on lists somewhat spruced up and better tested than it was when I wrote it. Includes docs & tests. The whatsnew section needs expanding, and arrays should support extended slices -- later.
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 d9d6934984..cd40a1bf84 100644
--- a/Include/sliceobject.h
+++ b/Include/sliceobject.h
@@ -32,6 +32,9 @@ DL_IMPORT(PyObject *) PySlice_New(PyObject* start, PyObject* stop,
PyObject* step);
DL_IMPORT(int) PySlice_GetIndices(PySliceObject *r, int length,
int *start, int *stop, int *step);
+DL_IMPORT(int) PySlice_GetIndicesEx(PySliceObject *r, int length,
+ int *start, int *stop,
+ int *step, int *slicelength);
#ifdef __cplusplus
}