diff --git a/Include/sliceobject.h b/Include/sliceobject.h index 71e281852d28d3..a10cc05f090e90 100644 --- a/Include/sliceobject.h +++ b/Include/sliceobject.h @@ -38,11 +38,6 @@ PyAPI_FUNC(int) PySlice_GetIndicesEx(PySliceObject *r, Py_ssize_t length, Py_ssize_t *start, Py_ssize_t *stop, Py_ssize_t *step, Py_ssize_t *slicelength); -#define PySlice_GetIndicesEx(slice, length, start, stop, step, slicelen) ( \ - _PySlice_Unpack((PyObject *)(slice), (start), (stop), (step)) < 0 ? \ - ((*(slicelen) = 0), -1) : \ - ((*(slicelen) = _PySlice_AdjustIndices((length), (start), (stop), *(step))), \ - 0)) PyAPI_FUNC(int) _PySlice_Unpack(PyObject *slice, Py_ssize_t *start, Py_ssize_t *stop, Py_ssize_t *step); PyAPI_FUNC(Py_ssize_t) _PySlice_AdjustIndices(Py_ssize_t length, diff --git a/Misc/NEWS b/Misc/NEWS index a0908204ee3230..f2bd997e5dd503 100644 --- a/Misc/NEWS +++ b/Misc/NEWS @@ -111,11 +111,6 @@ Library - Issue #28925: cPickle now correctly propagates errors when unpickle instances of old-style classes. -C API ------ - -- Issue #27867: Function PySlice_GetIndicesEx() is replaced with a macro. - Documentation -------------