Skip to content

Commit 89f9eb5

Browse files
bpo-29943: Remove the PySlice_GetIndicesEx() macro. (#1050)
1 parent 5e79321 commit 89f9eb5

2 files changed

Lines changed: 0 additions & 10 deletions

File tree

Include/sliceobject.h

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -38,11 +38,6 @@ PyAPI_FUNC(int) PySlice_GetIndicesEx(PySliceObject *r, Py_ssize_t length,
3838
Py_ssize_t *start, Py_ssize_t *stop,
3939
Py_ssize_t *step, Py_ssize_t *slicelength);
4040

41-
#define PySlice_GetIndicesEx(slice, length, start, stop, step, slicelen) ( \
42-
_PySlice_Unpack((PyObject *)(slice), (start), (stop), (step)) < 0 ? \
43-
((*(slicelen) = 0), -1) : \
44-
((*(slicelen) = _PySlice_AdjustIndices((length), (start), (stop), *(step))), \
45-
0))
4641
PyAPI_FUNC(int) _PySlice_Unpack(PyObject *slice,
4742
Py_ssize_t *start, Py_ssize_t *stop, Py_ssize_t *step);
4843
PyAPI_FUNC(Py_ssize_t) _PySlice_AdjustIndices(Py_ssize_t length,

Misc/NEWS

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -111,11 +111,6 @@ Library
111111
- Issue #28925: cPickle now correctly propagates errors when unpickle instances
112112
of old-style classes.
113113

114-
C API
115-
-----
116-
117-
- Issue #27867: Function PySlice_GetIndicesEx() is replaced with a macro.
118-
119114
Documentation
120115
-------------
121116

0 commit comments

Comments
 (0)