From 89f9eb5b192b875c017d37cac16bd514aad9a801 Mon Sep 17 00:00:00 2001 From: Serhiy Storchaka Date: Sun, 16 Apr 2017 10:08:47 +0300 Subject: bpo-29943: Remove the PySlice_GetIndicesEx() macro. (#1050) --- Include/sliceobject.h | 5 ----- Misc/NEWS | 5 ----- 2 files changed, 10 deletions(-) diff --git a/Include/sliceobject.h b/Include/sliceobject.h index 71e2818..a10cc05 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 a090820..f2bd997 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 ------------- -- cgit v0.12