mirror of
https://github.com/python/cpython.git
synced 2025-07-07 19:35:27 +00:00
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.
This commit is contained in:
parent
f90ae20354
commit
5efaf7eac8
13 changed files with 570 additions and 22 deletions
|
@ -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
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue