Is PySlice_GetIndices still used?

As stated in the list of Metabug: Improving C-level coverage · Issue #94808 · python/cpython · GitHub, PySlice_GetIndices and PySlice_GetIndicesEX of the C API are not currently covered by tests. Checking the documentation, PySlice_GetIndicesEX is deprecated while PySlice_GetIndices is not.
Is the latter still being used? I have some doubts about it since:

  • The documentation proactively suggests to not use it and use PySlice_GetIndicesEX instead.
  • No line of the function is covered in tests.
  • Last modification of it, according to GitHub, was 12 years ago.
  • Googling it, returns few old results.

If it is not used, should it be deprecated?

Using @vstinner’s misc/cpython/download_pypi_top.py at main · vstinner/misc · GitHub and misc/cpython/search_pypi_top.py at main · vstinner/misc · GitHub to search the top 5k PyPI packages,

Found 41 matching lines in 5 projects (0.1%) for regex \bPySlice_GetIndices\b:

Summary
$ python ~/github/misc/cpython/search_pypi_top.py out-2022-06-12 "\bPySlice_GetIndices\b" -q
out-2022-06-12/Cython-0.29.30.tar.gz: Cython-0.29.30/Cython/Includes/cpython/slice.pxd: int PySlice_GetIndices(object slice, Py_ssize_t length,
out-2022-06-12/Cython-0.29.30.tar.gz: Cython-0.29.30/Cython/Includes/cpython/slice.pxd: # Usable replacement for PySlice_GetIndices(). Retrieve the start, stop, and step
out-2022-06-12/guppy3-3.1.2.tar.gz: guppy3-3.1.2/src/sets/bitset.c: /* stripped down & specialized version of PySlice_GetIndices
out-2022-06-12/cvxpy-1.2.1.tar.gz: cvxpy-1.2.1/cvxpy/cvxcore/python/cvxcore_wrap.cxx: PySlice_GetIndices(SWIGPY_SLICE_ARG(slice), (Py_ssize_t)self->size(), &i, &j, &step);
out-2022-06-12/cvxpy-1.2.1.tar.gz: cvxpy-1.2.1/cvxpy/cvxcore/python/cvxcore_wrap.cxx: PySlice_GetIndices(SWIGPY_SLICE_ARG(slice), (Py_ssize_t)self->size(), &i, &j, &step);
out-2022-06-12/cvxpy-1.2.1.tar.gz: cvxpy-1.2.1/cvxpy/cvxcore/python/cvxcore_wrap.cxx: PySlice_GetIndices(SWIGPY_SLICE_ARG(slice), (Py_ssize_t)self->size(), &i, &j, &step);
out-2022-06-12/cvxpy-1.2.1.tar.gz: cvxpy-1.2.1/cvxpy/cvxcore/python/cvxcore_wrap.cxx: PySlice_GetIndices(SWIGPY_SLICE_ARG(slice), (Py_ssize_t)self->size(), &i, &j, &step);
out-2022-06-12/cvxpy-1.2.1.tar.gz: cvxpy-1.2.1/cvxpy/cvxcore/python/cvxcore_wrap.cxx: PySlice_GetIndices(SWIGPY_SLICE_ARG(slice), (Py_ssize_t)self->size(), &i, &j, &step);
out-2022-06-12/cvxpy-1.2.1.tar.gz: cvxpy-1.2.1/cvxpy/cvxcore/python/cvxcore_wrap.cxx: PySlice_GetIndices(SWIGPY_SLICE_ARG(slice), (Py_ssize_t)self->size(), &i, &j, &step);
out-2022-06-12/cvxpy-1.2.1.tar.gz: cvxpy-1.2.1/cvxpy/cvxcore/python/cvxcore_wrap.cxx: PySlice_GetIndices(SWIGPY_SLICE_ARG(slice), (Py_ssize_t)self->size(), &i, &j, &step);
out-2022-06-12/cvxpy-1.2.1.tar.gz: cvxpy-1.2.1/cvxpy/cvxcore/python/cvxcore_wrap.cxx: PySlice_GetIndices(SWIGPY_SLICE_ARG(slice), (Py_ssize_t)self->size(), &i, &j, &step);
out-2022-06-12/cvxpy-1.2.1.tar.gz: cvxpy-1.2.1/cvxpy/cvxcore/python/cvxcore_wrap.cxx: PySlice_GetIndices(SWIGPY_SLICE_ARG(slice), (Py_ssize_t)self->size(), &i, &j, &step);
out-2022-06-12/cvxpy-1.2.1.tar.gz: cvxpy-1.2.1/cvxpy/cvxcore/python/cvxcore_wrap.cxx: PySlice_GetIndices(SWIGPY_SLICE_ARG(slice), (Py_ssize_t)self->size(), &i, &j, &step);
out-2022-06-12/cvxpy-1.2.1.tar.gz: cvxpy-1.2.1/cvxpy/cvxcore/python/cvxcore_wrap.cxx: PySlice_GetIndices(SWIGPY_SLICE_ARG(slice), (Py_ssize_t)self->size(), &i, &j, &step);
out-2022-06-12/cvxpy-1.2.1.tar.gz: cvxpy-1.2.1/cvxpy/cvxcore/python/cvxcore_wrap.cxx: PySlice_GetIndices(SWIGPY_SLICE_ARG(slice), (Py_ssize_t)self->size(), &i, &j, &step);
out-2022-06-12/cvxpy-1.2.1.tar.gz: cvxpy-1.2.1/cvxpy/cvxcore/python/cvxcore_wrap.cxx: PySlice_GetIndices(SWIGPY_SLICE_ARG(slice), (Py_ssize_t)self->size(), &i, &j, &step);
out-2022-06-12/cvxpy-1.2.1.tar.gz: cvxpy-1.2.1/cvxpy/cvxcore/python/cvxcore_wrap.cxx: PySlice_GetIndices(SWIGPY_SLICE_ARG(slice), (Py_ssize_t)self->size(), &i, &j, &step);
out-2022-06-12/cvxpy-1.2.1.tar.gz: cvxpy-1.2.1/cvxpy/cvxcore/python/cvxcore_wrap.cxx: PySlice_GetIndices(SWIGPY_SLICE_ARG(slice), (Py_ssize_t)self->size(), &i, &j, &step);
out-2022-06-12/cvxpy-1.2.1.tar.gz: cvxpy-1.2.1/cvxpy/cvxcore/python/cvxcore_wrap.cxx: PySlice_GetIndices(SWIGPY_SLICE_ARG(slice), (Py_ssize_t)self->size(), &i, &j, &step);
out-2022-06-12/cvxpy-1.2.1.tar.gz: cvxpy-1.2.1/cvxpy/cvxcore/python/cvxcore_wrap.cxx: PySlice_GetIndices(SWIGPY_SLICE_ARG(slice), (Py_ssize_t)self->size(), &i, &j, &step);
out-2022-06-12/cvxpy-1.2.1.tar.gz: cvxpy-1.2.1/cvxpy/cvxcore/python/cvxcore_wrap.cxx: PySlice_GetIndices(SWIGPY_SLICE_ARG(slice), (Py_ssize_t)self->size(), &i, &j, &step);
out-2022-06-12/cvxpy-1.2.1.tar.gz: cvxpy-1.2.1/cvxpy/cvxcore/python/cvxcore_wrap.cxx: PySlice_GetIndices(SWIGPY_SLICE_ARG(slice), (Py_ssize_t)self->size(), &i, &j, &step);
out-2022-06-12/cvxpy-1.2.1.tar.gz: cvxpy-1.2.1/cvxpy/cvxcore/python/cvxcore_wrap.cxx: PySlice_GetIndices(SWIGPY_SLICE_ARG(slice), (Py_ssize_t)self->size(), &i, &j, &step);
out-2022-06-12/cvxpy-1.2.1.tar.gz: cvxpy-1.2.1/cvxpy/cvxcore/python/cvxcore_wrap.cxx: PySlice_GetIndices(SWIGPY_SLICE_ARG(slice), (Py_ssize_t)self->size(), &i, &j, &step);
out-2022-06-12/cvxpy-1.2.1.tar.gz: cvxpy-1.2.1/cvxpy/cvxcore/python/cvxcore_wrap.cxx: PySlice_GetIndices(SWIGPY_SLICE_ARG(slice), (Py_ssize_t)self->size(), &i, &j, &step);
out-2022-06-12/cvxpy-1.2.1.tar.gz: cvxpy-1.2.1/cvxpy/cvxcore/python/cvxcore_wrap.cxx: PySlice_GetIndices(SWIGPY_SLICE_ARG(slice), (Py_ssize_t)self->size(), &i, &j, &step);
out-2022-06-12/cvxpy-1.2.1.tar.gz: cvxpy-1.2.1/cvxpy/cvxcore/python/cvxcore_wrap.cxx: PySlice_GetIndices(SWIGPY_SLICE_ARG(slice), (Py_ssize_t)self->size(), &i, &j, &step);
out-2022-06-12/pythran-0.11.0.tar.gz: pythran-0.11.0/pythran/pythonic/types/slice.hpp: PySlice_GetIndices((PyObject *)obj, PY_SSIZE_T_MAX, &start, &stop, &step);
out-2022-06-12/pythran-0.11.0.tar.gz: pythran-0.11.0/pythran/pythonic/types/slice.hpp: PySlice_GetIndices((PySliceObject *)obj, PY_SSIZE_T_MAX, &start, &stop,
out-2022-06-12/python-crfsuite-0.9.8.tar.gz: python-crfsuite-0.9.8/crfsuite/swig/python/export_wrap.cpp: PySlice_GetIndices(SWIGPY_SLICE_ARG(slice), (Py_ssize_t)self->size(), &i, &j, &step);
out-2022-06-12/python-crfsuite-0.9.8.tar.gz: python-crfsuite-0.9.8/crfsuite/swig/python/export_wrap.cpp: PySlice_GetIndices(SWIGPY_SLICE_ARG(slice), (Py_ssize_t)self->size(), &i, &j, &step);
out-2022-06-12/python-crfsuite-0.9.8.tar.gz: python-crfsuite-0.9.8/crfsuite/swig/python/export_wrap.cpp: PySlice_GetIndices(SWIGPY_SLICE_ARG(slice), (Py_ssize_t)self->size(), &i, &j, &step);
out-2022-06-12/python-crfsuite-0.9.8.tar.gz: python-crfsuite-0.9.8/crfsuite/swig/python/export_wrap.cpp: PySlice_GetIndices(SWIGPY_SLICE_ARG(slice), (Py_ssize_t)self->size(), &i, &j, &step);
out-2022-06-12/python-crfsuite-0.9.8.tar.gz: python-crfsuite-0.9.8/crfsuite/swig/python/export_wrap.cpp: PySlice_GetIndices(SWIGPY_SLICE_ARG(slice), (Py_ssize_t)self->size(), &i, &j, &step);
out-2022-06-12/python-crfsuite-0.9.8.tar.gz: python-crfsuite-0.9.8/crfsuite/swig/python/export_wrap.cpp: PySlice_GetIndices(SWIGPY_SLICE_ARG(slice), (Py_ssize_t)self->size(), &i, &j, &step);
out-2022-06-12/python-crfsuite-0.9.8.tar.gz: python-crfsuite-0.9.8/crfsuite/swig/python/export_wrap.cpp: PySlice_GetIndices(SWIGPY_SLICE_ARG(slice), (Py_ssize_t)self->size(), &i, &j, &step);
out-2022-06-12/python-crfsuite-0.9.8.tar.gz: python-crfsuite-0.9.8/crfsuite/swig/python/export_wrap.cpp: PySlice_GetIndices(SWIGPY_SLICE_ARG(slice), (Py_ssize_t)self->size(), &i, &j, &step);
out-2022-06-12/python-crfsuite-0.9.8.tar.gz: python-crfsuite-0.9.8/crfsuite/swig/python/export_wrap.cpp: PySlice_GetIndices(SWIGPY_SLICE_ARG(slice), (Py_ssize_t)self->size(), &i, &j, &step);
out-2022-06-12/python-crfsuite-0.9.8.tar.gz: python-crfsuite-0.9.8/crfsuite/swig/python/export_wrap.cpp: PySlice_GetIndices(SWIGPY_SLICE_ARG(slice), (Py_ssize_t)self->size(), &i, &j, &step);
out-2022-06-12/python-crfsuite-0.9.8.tar.gz: python-crfsuite-0.9.8/crfsuite/swig/python/export_wrap.cpp: PySlice_GetIndices(SWIGPY_SLICE_ARG(slice), (Py_ssize_t)self->size(), &i, &j, &step);
out-2022-06-12/python-crfsuite-0.9.8.tar.gz: python-crfsuite-0.9.8/crfsuite/swig/python/export_wrap.cpp: PySlice_GetIndices(SWIGPY_SLICE_ARG(slice), (Py_ssize_t)self->size(), &i, &j, &step);

Time: 0:00:20.366251
Found 41 matching lines in 5 projects

Found 130 matching lines in 41 projects (0.8%) for \bPySlice_GetIndicesEx\b:

Summary
$ python ~/github/misc/cpython/search_pypi_top.py out-2022-06-12 "\bPySlice_GetIndicesEx\b" -q
out-2022-06-12/numba-0.55.2.tar.gz: numba-0.55.2/numba/cpython/slicing.py: # See PySlice_GetIndicesEx()
out-2022-06-12/numba-0.55.2.tar.gz: numba-0.55.2/numba/cpython/slicing.py: (see PySlice_GetIndicesEx() in CPython)
out-2022-06-12/ruamel.ordereddict-0.4.15.tar.gz: ruamel.ordereddict-0.4.15/ordereddict.c: if (PySlice_GetIndicesEx(
out-2022-06-12/ruamel.ordereddict-0.4.15.tar.gz: ruamel.ordereddict-0.4.15/ordereddict.c: if (PySlice_GetIndicesEx(
out-2022-06-12/pygame-2.1.2.tar.gz: pygame-2.1.2/src_c/math.c: if (PySlice_GetIndicesEx((PyObject *)key, self->dim, &start, &stop,
out-2022-06-12/pygame-2.1.2.tar.gz: pygame-2.1.2/src_c/math.c: if (PySlice_GetIndicesEx((PyObject *)key, self->dim, &start, &stop,
out-2022-06-12/pygame-2.1.2.tar.gz: pygame-2.1.2/src_c/pgcompat.h: PySlice_GetIndicesEx(slice, length, start, stop, step, slicelength)
out-2022-06-12/pygame-2.1.2.tar.gz: pygame-2.1.2/src_c/rect.c: if (PySlice_GetIndicesEx(op, 4, &start, &stop, &step, &slicelen)) {
out-2022-06-12/pygame-2.1.2.tar.gz: pygame-2.1.2/src_c/rect.c: if (PySlice_GetIndicesEx(op, 4, &start, &stop, &step, &slicelen)) {
out-2022-06-12/mpi4py-3.1.3.tar.gz: mpi4py-3.1.3/src/mpi4py/MPI/asbuffer.pxi: int PySlice_GetIndicesEx(object, Py_ssize_t,
out-2022-06-12/mpi4py-3.1.3.tar.gz: mpi4py-3.1.3/src/mpi4py/MPI/asbuffer.pxi: PySlice_GetIndicesEx(item, blen, &start, &stop, &step, &slen)
out-2022-06-12/mpi4py-3.1.3.tar.gz: mpi4py-3.1.3/src/mpi4py/MPI/asbuffer.pxi: PySlice_GetIndicesEx(item, blen, &start, &stop, &step, &slen)
out-2022-06-12/mpi4py-3.1.3.tar.gz: mpi4py-3.1.3/src/pycompat.h: #ifdef PySlice_GetIndicesEx
out-2022-06-12/mpi4py-3.1.3.tar.gz: mpi4py-3.1.3/src/pycompat.h: #undef PySlice_GetIndicesEx
out-2022-06-12/mpi4py-3.1.3.tar.gz: mpi4py-3.1.3/src/pycompat.h: #define PySlice_GetIndicesEx(s, n, start, stop, step, length) \
out-2022-06-12/mpi4py-3.1.3.tar.gz: mpi4py-3.1.3/src/pycompat.h: #define PySlice_GetIndicesEx(s, n, start, stop, step, length) \
out-2022-06-12/mpi4py-3.1.3.tar.gz: mpi4py-3.1.3/src/pycompat.h: PySlice_GetIndicesEx((PySliceObject *)(s), n, start, stop, step, length)
out-2022-06-12/mpi4py-3.1.3.tar.gz: mpi4py-3.1.3/src/pycompat.h: #define PySlice_GetIndicesEx(s, n, start, stop, step, length) \
out-2022-06-12/mpi4py-3.1.3.tar.gz: mpi4py-3.1.3/src/pycompat.h: PySlice_GetIndicesEx((PySliceObject *)(s), n, start, stop, step, length)
out-2022-06-12/pyrsistent-0.18.1.tar.gz: pyrsistent-0.18.1/pvectorcmodule.c: if (PySlice_GetIndicesEx(SLICE_CAST item, self->count,
out-2022-06-12/asyncpg-0.25.0.tar.gz: asyncpg-0.25.0/asyncpg/protocol/record/recordobj.c: if (PySlice_GetIndicesEx(
out-2022-06-12/Cython-0.29.30.tar.gz: Cython-0.29.30/Cython/Includes/cpython/slice.pxd: int PySlice_GetIndicesEx(object slice, Py_ssize_t length,
out-2022-06-12/scipy-1.8.1.tar.gz: scipy-1.8.1/scipy/_lib/boost/boost/python/slice.hpp: // PySlice_GetIndicesEx() in the Python/C API, but tailored for C++ users.
out-2022-06-12/scipy-1.8.1.tar.gz: scipy-1.8.1/scipy/_lib/boost/boost/python/slice.hpp: // This is based loosely on PySlice_GetIndicesEx(), but it has been
out-2022-06-12/vaex-core-4.9.2.tar.gz: vaex-core-4.9.2/vendor/pybind11/include/pybind11/pytypes.h: return PySlice_GetIndicesEx((PYBIND11_SLICE_OBJECT *) m_ptr,
out-2022-06-12/regex-2022.6.2.tar.gz: regex-2022.6.2/regex_3/_regex.c: /* Issue 29943: PySlice_GetIndicesEx change broke ABI in 3.5 and 3.6 branches
out-2022-06-12/regex-2022.6.2.tar.gz: regex-2022.6.2/regex_3/_regex.c: #if defined(PySlice_GetIndicesEx) && !defined(PYPY_VERSION)
out-2022-06-12/regex-2022.6.2.tar.gz: regex-2022.6.2/regex_3/_regex.c: #undef PySlice_GetIndicesEx
out-2022-06-12/regex-2022.6.2.tar.gz: regex-2022.6.2/regex_3/_regex.c: if (PySlice_GetIndicesEx(slice, (Py_ssize_t)self->group_count + 1, &start,
out-2022-06-12/numpy-1.22.4.zip: numpy-1.22.4/numpy/core/include/numpy/npy_3kcompat.h: /* Py3 changes PySlice_GetIndicesEx' first argument's type to PyObject* */
out-2022-06-12/numpy-1.22.4.zip: numpy-1.22.4/numpy/core/include/numpy/npy_3kcompat.h: #  define NpySlice_GetIndicesEx PySlice_GetIndicesEx
out-2022-06-12/numpy-1.22.4.zip: numpy-1.22.4/numpy/core/include/numpy/npy_3kcompat.h: PySlice_GetIndicesEx((PySliceObject *)op, nop, start, end, step, slicelength)
out-2022-06-12/numpy-1.22.4.zip: numpy-1.22.4/numpy/core/src/multiarray/iterators.c: if (PySlice_GetIndicesEx(op, max, &i, &stop, step_size, n_steps) < 0) {
out-2022-06-12/numpy-1.22.4.zip: numpy-1.22.4/numpy/core/src/multiarray/nditer_pywrap.c: if (PySlice_GetIndicesEx(op, NpyIter_GetNOp(self->iter),
out-2022-06-12/numpy-1.22.4.zip: numpy-1.22.4/numpy/core/src/multiarray/nditer_pywrap.c: if (PySlice_GetIndicesEx(op, NpyIter_GetNOp(self->iter),
out-2022-06-12/numpy-1.22.4.zip: numpy-1.22.4/numpy/core/src/multiarray/mapping.c: if (PySlice_GetIndicesEx(indices[i].object,
out-2022-06-12/osmium-3.3.0.tar.gz: osmium-3.3.0/contrib/pybind11/include/pybind11/detail/common.h: // C4505: 'PySlice_GetIndicesEx': unreferenced local function has been removed (PyPy only)
out-2022-06-12/osmium-3.3.0.tar.gz: osmium-3.3.0/contrib/pybind11/include/pybind11/pytypes.h: return PySlice_GetIndicesEx((PYBIND11_SLICE_OBJECT *) m_ptr,
out-2022-06-12/osmium-3.3.0.tar.gz: osmium-3.3.0/contrib/pybind11/include/pybind11/pytypes.h: return PySlice_GetIndicesEx((PYBIND11_SLICE_OBJECT *) m_ptr,
out-2022-06-12/PyQt5-5.15.6.tar.gz: PyQt5-5.15.6/ChangeLog: Replaced calls to PySlice_GetIndicesEx() with
out-2022-06-12/wxPython-4.1.1.tar.gz: wxPython-4.1.1/sip/siplib/siplib.c: * Implement PySlice_GetIndicesEx() (or its subsequent replacement).
out-2022-06-12/wxPython-4.1.1.tar.gz: wxPython-4.1.1/sip/siplib/siplib.c: return PySlice_GetIndicesEx(slice, length, start, stop, step, slicelength);
out-2022-06-12/wxPython-4.1.1.tar.gz: wxPython-4.1.1/sip/siplib/siplib.c: return PySlice_GetIndicesEx((PySliceObject *)slice, length, start, stop,
out-2022-06-12/PyQt5_sip-12.10.1.tar.gz: PyQt5_sip-12.10.1/siplib.c: * Implement PySlice_GetIndicesEx() (or its subsequent replacement).
out-2022-06-12/recordclass-0.17.2.tar.gz: recordclass-0.17.2/lib/recordclass/_litelist.c: if (PySlice_GetIndicesEx(item, (PyTuple_GET_SIZE(self)), &start, &stop, &step, &slicelength) < 0)
out-2022-06-12/recordclass-0.17.2.tar.gz: recordclass-0.17.2/lib/recordclass/_litelist.c: if (PySlice_GetIndicesEx(item, (Py_SIZE(self)), &start, &stop, &step, &slicelength) < 0)
out-2022-06-12/recordclass-0.17.2.tar.gz: recordclass-0.17.2/lib/recordclass/_litetuple.c: if (PySlice_GetIndicesEx(item, (PyTuple_GET_SIZE(self)), &start, &stop, &step, &slicelength) < 0)
out-2022-06-12/recordclass-0.17.2.tar.gz: recordclass-0.17.2/lib/recordclass/_litetuple.c: if (PySlice_GetIndicesEx(item, (Py_SIZE(self)), &start, &stop, &step, &slicelength) < 0)
out-2022-06-12/orderedset-2.0.3.tar.gz: orderedset-2.0.3/lib/orderedset/_orderedset.pyx: int PySlice_GetIndicesEx(slice, ssize_t length, ssize_t *start, ssize_t *stop, ssize_t *step, ssize_t *slicelength) except -1
out-2022-06-12/orderedset-2.0.3.tar.gz: orderedset-2.0.3/lib/orderedset/_orderedset.pyx: PySlice_GetIndicesEx(item, len(self), &start, &stop, &step, &slicelength)
out-2022-06-12/Theano-PyMC-1.1.2.tar.gz: Theano-PyMC-1.1.2/theano/tensor/subtensor.py: // PySlice_GetIndicesEx in python source
out-2022-06-12/Pillow-9.1.1.tar.gz: Pillow-9.1.1/src/path.c: if (PySlice_GetIndicesEx(item, len, &start, &stop, &step, &slicelength) < 0) {
out-2022-06-12/BTrees-4.10.0.tar.gz: BTrees-4.10.0/src/BTrees/BTreeItemsTemplate.c: if (PySlice_GetIndicesEx(SLICEOBJ(subscript), len,
out-2022-06-12/cffi-1.15.0.tar.gz: cffi-1.15.0/c/minibuffer.h: /* pfffffffffffff#2: the PySlice_GetIndicesEx() *macro* should not
out-2022-06-12/cffi-1.15.0.tar.gz: cffi-1.15.0/c/minibuffer.h: #if PY_VERSION_HEX < 0x03070000 && defined(PySlice_GetIndicesEx) && !defined(PYPY_VERSION)
out-2022-06-12/cffi-1.15.0.tar.gz: cffi-1.15.0/c/minibuffer.h: #undef PySlice_GetIndicesEx
out-2022-06-12/cffi-1.15.0.tar.gz: cffi-1.15.0/c/minibuffer.h: if (PySlice_GetIndicesEx(item, self->mb_size,
out-2022-06-12/cffi-1.15.0.tar.gz: cffi-1.15.0/c/minibuffer.h: if (PySlice_GetIndicesEx(item, self->mb_size,
out-2022-06-12/pybind11-2.9.2.tar.gz: pybind11-2.9.2/pybind11/include/pybind11/detail/common.h: // C4505: 'PySlice_GetIndicesEx': unreferenced local function has been removed (PyPy only)
out-2022-06-12/pybind11-2.9.2.tar.gz: pybind11-2.9.2/pybind11/include/pybind11/pytypes.h: return PySlice_GetIndicesEx((PYBIND11_SLICE_OBJECT *) m_ptr,
out-2022-06-12/pybind11-2.9.2.tar.gz: pybind11-2.9.2/pybind11/include/pybind11/pytypes.h: return PySlice_GetIndicesEx(
out-2022-06-12/awkward-1.8.0.tar.gz: awkward-1.8.0/pybind11/include/pybind11/detail/common.h: // C4505: 'PySlice_GetIndicesEx': unreferenced local function has been removed (PyPy only)
out-2022-06-12/awkward-1.8.0.tar.gz: awkward-1.8.0/pybind11/include/pybind11/pytypes.h: return PySlice_GetIndicesEx((PYBIND11_SLICE_OBJECT *) m_ptr,
out-2022-06-12/awkward-1.8.0.tar.gz: awkward-1.8.0/pybind11/include/pybind11/pytypes.h: return PySlice_GetIndicesEx((PYBIND11_SLICE_OBJECT *) m_ptr,
out-2022-06-12/pyodbc-4.0.32.tar.gz: pyodbc-4.0.32/src/row.cpp: if (PySlice_GetIndicesEx(key, row->cValues, &start, &stop, &step, &slicelength) < 0)
out-2022-06-12/pyodbc-4.0.32.tar.gz: pyodbc-4.0.32/src/row.cpp: if (PySlice_GetIndicesEx((PySliceObject*)key, row->cValues, &start, &stop, &step, &slicelength) < 0)
out-2022-06-12/igraph-0.9.11.tar.gz: igraph-0.9.11/src/_igraph/convert.c: if (PySlice_GetIndicesEx(o, no_of_vertices, &start, &stop, &step, &slicelength))
out-2022-06-12/igraph-0.9.11.tar.gz: igraph-0.9.11/src/_igraph/edgeseqobject.c: ok = (PySlice_GetIndicesEx(item, m, &start, &stop, &step, &sl) == 0);
out-2022-06-12/igraph-0.9.11.tar.gz: igraph-0.9.11/src/_igraph/vertexseqobject.c: ok = (PySlice_GetIndicesEx(item, m, &start, &stop, &step, &sl) == 0);
out-2022-06-12/sip-6.6.1.tar.gz: sip-6.6.1/sipbuild/module/source/12/siplib.c: * Implement PySlice_GetIndicesEx() (or its subsequent replacement).
out-2022-06-12/sip-6.6.1.tar.gz: sip-6.6.1/sipbuild/module/source/13/siplib.c: * Implement PySlice_GetIndicesEx() (or its subsequent replacement).
out-2022-06-12/sip-6.6.1.tar.gz: sip-6.6.1/sipbuild/module/source/13/siplib.c: return PySlice_GetIndicesEx(slice, length, start, stop, step, slicelength);
out-2022-06-12/PyICU-2.9.tar.gz: PyICU-2.9/bases.cpp: if (PySlice_GetIndicesEx(key, length,
out-2022-06-12/PyICU-2.9.tar.gz: PyICU-2.9/bases.cpp: if (PySlice_GetIndicesEx(key, length,
out-2022-06-12/onnx-1.11.0.tar.gz: onnx-1.11.0/third_party/pybind11/include/pybind11/pybind11.h: #  pragma warning(disable: 4505) // warning C4505: 'PySlice_GetIndicesEx': unreferenced local function has been removed (PyPy only)
out-2022-06-12/onnx-1.11.0.tar.gz: onnx-1.11.0/third_party/pybind11/include/pybind11/pytypes.h: return PySlice_GetIndicesEx((PYBIND11_SLICE_OBJECT *) m_ptr,
out-2022-06-12/onnx-1.11.0.tar.gz: onnx-1.11.0/third_party/pybind11/include/pybind11/pytypes.h: return PySlice_GetIndicesEx((PYBIND11_SLICE_OBJECT *) m_ptr,
out-2022-06-12/cvxopt-1.3.0.tar.gz: cvxopt-1.3.0/src/C/dense.c: if (PySlice_GetIndicesEx(A, dim, &start, &stop, &step, &lgt) < 0)
out-2022-06-12/cvxopt-1.3.0.tar.gz: cvxopt-1.3.0/src/C/dense.c: if (PySlice_GetIndicesEx((PySliceObject*)A, dim,
out-2022-06-12/cvxopt-1.3.0.tar.gz: cvxopt-1.3.0/src/C/dense.c: if ( (PySlice_GetIndicesEx(argI, MAT_NROWS(self), &rowstart, &rowstop,
out-2022-06-12/cvxopt-1.3.0.tar.gz: cvxopt-1.3.0/src/C/dense.c: (PySlice_GetIndicesEx(argJ, MAT_NCOLS(self), &colstart, &colstop,
out-2022-06-12/cvxopt-1.3.0.tar.gz: cvxopt-1.3.0/src/C/dense.c: if ( (PySlice_GetIndicesEx((PySliceObject*)argI, MAT_NROWS(self),
out-2022-06-12/cvxopt-1.3.0.tar.gz: cvxopt-1.3.0/src/C/dense.c: (PySlice_GetIndicesEx((PySliceObject*)argJ, MAT_NCOLS(self),
out-2022-06-12/cvxopt-1.3.0.tar.gz: cvxopt-1.3.0/src/C/dense.c: if ( (PySlice_GetIndicesEx(argI, MAT_NROWS(self), &rowstart, &rowstop,
out-2022-06-12/cvxopt-1.3.0.tar.gz: cvxopt-1.3.0/src/C/dense.c: (PySlice_GetIndicesEx(argJ, MAT_NCOLS(self), &colstart, &colstop,
out-2022-06-12/cvxopt-1.3.0.tar.gz: cvxopt-1.3.0/src/C/dense.c: if ( (PySlice_GetIndicesEx((PySliceObject*)argI, MAT_NROWS(self),
out-2022-06-12/cvxopt-1.3.0.tar.gz: cvxopt-1.3.0/src/C/dense.c: (PySlice_GetIndicesEx((PySliceObject*)argJ, MAT_NCOLS(self),
out-2022-06-12/cvxopt-1.3.0.tar.gz: cvxopt-1.3.0/src/C/sparse.c: if (PySlice_GetIndicesEx(argI, SP_NROWS(self), &rowstart, &rowstop,
out-2022-06-12/cvxopt-1.3.0.tar.gz: cvxopt-1.3.0/src/C/sparse.c: if (PySlice_GetIndicesEx((PySliceObject*)argI, SP_NROWS(self),
out-2022-06-12/cvxopt-1.3.0.tar.gz: cvxopt-1.3.0/src/C/sparse.c: if (PySlice_GetIndicesEx(argJ, SP_NCOLS(self), &colstart, &colstop,
out-2022-06-12/cvxopt-1.3.0.tar.gz: cvxopt-1.3.0/src/C/sparse.c: if (PySlice_GetIndicesEx((PySliceObject*)argJ, SP_NCOLS(self),
out-2022-06-12/protobuf-4.21.1.tar.gz: protobuf-4.21.1/google/protobuf/pyext/message.cc: PySlice_GetIndicesEx(slice, length, &from, &to, &step, &slice_length);
out-2022-06-12/protobuf-4.21.1.tar.gz: protobuf-4.21.1/google/protobuf/pyext/repeated_composite_container.cc: if (PySlice_GetIndicesEx(item, length, &from, &to, &step, &slicelength) ==
out-2022-06-12/protobuf-4.21.1.tar.gz: protobuf-4.21.1/google/protobuf/pyext/repeated_scalar_container.cc: if (PySlice_GetIndicesEx(slice, length, &from, &to, &step, &slicelength) ==
out-2022-06-12/protobuf-4.21.1.tar.gz: protobuf-4.21.1/google/protobuf/pyext/repeated_scalar_container.cc: if (PySlice_GetIndicesEx(slice, length, &from, &to, &step, &slicelength) ==
out-2022-06-12/onnxoptimizer-0.2.7.tar.gz: onnxoptimizer-0.2.7/third_party/onnx/third_party/pybind11/include/pybind11/pybind11.h: #  pragma warning(disable: 4505) // warning C4505: 'PySlice_GetIndicesEx': unreferenced local function has been removed (PyPy only)
out-2022-06-12/onnxoptimizer-0.2.7.tar.gz: onnxoptimizer-0.2.7/third_party/onnx/third_party/pybind11/include/pybind11/pytypes.h: return PySlice_GetIndicesEx((PYBIND11_SLICE_OBJECT *) m_ptr,
out-2022-06-12/onnxoptimizer-0.2.7.tar.gz: onnxoptimizer-0.2.7/third_party/onnx/third_party/pybind11/include/pybind11/pytypes.h: return PySlice_GetIndicesEx((PYBIND11_SLICE_OBJECT *) m_ptr,
out-2022-06-12/onnxoptimizer-0.2.7.tar.gz: onnxoptimizer-0.2.7/third_party/protobuf/python/google/protobuf/pyext/message.cc: PySlice_GetIndicesEx(slice, length, &from, &to, &step, &slice_length);
out-2022-06-12/onnxoptimizer-0.2.7.tar.gz: onnxoptimizer-0.2.7/third_party/protobuf/python/google/protobuf/pyext/repeated_composite_container.cc: if (PySlice_GetIndicesEx(item, length, &from, &to, &step, &slicelength) ==
out-2022-06-12/onnxoptimizer-0.2.7.tar.gz: onnxoptimizer-0.2.7/third_party/protobuf/python/google/protobuf/pyext/repeated_scalar_container.cc: if (PySlice_GetIndicesEx(slice, length, &from, &to, &step, &slicelength) ==
out-2022-06-12/onnxoptimizer-0.2.7.tar.gz: onnxoptimizer-0.2.7/third_party/protobuf/python/google/protobuf/pyext/repeated_scalar_container.cc: if (PySlice_GetIndicesEx(slice, length, &from, &to, &step, &slicelength) ==
out-2022-06-12/pandas-1.4.2.tar.gz: pandas-1.4.2/pandas/_libs/internals.pyx: from cpython.slice cimport PySlice_GetIndicesEx
out-2022-06-12/pandas-1.4.2.tar.gz: pandas-1.4.2/pandas/_libs/internals.pyx: PySlice_GetIndicesEx(slc, objlen, &start, &stop, &step, &length)
out-2022-06-12/pandas-1.4.2.tar.gz: pandas-1.4.2/pandas/_libs/internals.pyx: PySlice_GetIndicesEx(slc, objlen, &start, &stop, &step, &length)
out-2022-06-12/bitarray-2.5.1.tar.gz: bitarray-2.5.1/bitarray/_bitarray.c: if (PySlice_GetIndicesEx(item, self->nbits,
out-2022-06-12/bitarray-2.5.1.tar.gz: bitarray-2.5.1/bitarray/_bitarray.c: if (PySlice_GetIndicesEx(slice, self->nbits,
out-2022-06-12/bitarray-2.5.1.tar.gz: bitarray-2.5.1/bitarray/_bitarray.c: if (PySlice_GetIndicesEx(slice, self->nbits,
out-2022-06-12/bitarray-2.5.1.tar.gz: bitarray-2.5.1/bitarray/_bitarray.c: if (PySlice_GetIndicesEx(slice, self->nbits,
out-2022-06-12/bitarray-2.5.1.tar.gz: bitarray-2.5.1/bitarray/bitarray.h: #define PySlice_GetIndicesEx(slice, len, start, stop, step, slicelength) \
out-2022-06-12/bitarray-2.5.1.tar.gz: bitarray-2.5.1/bitarray/bitarray.h: PySlice_GetIndicesEx(((PySliceObject *) slice),                      \
out-2022-06-12/pyobjc-core-8.5.tar.gz: pyobjc-core-8.5/Modules/objc/struct-wrapper.m: if (PySlice_GetIndicesEx(item, STRUCT_LENGTH(self), &start, &stop, &step,
out-2022-06-12/pyobjc-core-8.5.tar.gz: pyobjc-core-8.5/Modules/objc/struct-wrapper.m: if (PySlice_GetIndicesEx(item, STRUCT_LENGTH(self), &start, &stop, &step,
out-2022-06-12/mercurial-6.1.3.tar.gz: mercurial-6.1.3/mercurial/cext/revlog.c: if (PySlice_GetIndicesEx(item, length, &start, &stop, &step,
out-2022-06-12/mercurial-6.1.3.tar.gz: mercurial-6.1.3/mercurial/cext/revlog.c: if (PySlice_GetIndicesEx((PySliceObject *)item, length, &start, &stop,
out-2022-06-12/biopython-1.79.tar.gz: biopython-1.79/Bio/Cluster/clustermodule.c: if (PySlice_GetIndicesEx(item, self->n, &start, &stop, &step,
out-2022-06-12/pybind11_global-2.9.2.tar.gz: pybind11_global-2.9.2/pybind11/include/pybind11/detail/common.h: // C4505: 'PySlice_GetIndicesEx': unreferenced local function has been removed (PyPy only)
out-2022-06-12/pybind11_global-2.9.2.tar.gz: pybind11_global-2.9.2/pybind11/include/pybind11/pytypes.h: return PySlice_GetIndicesEx((PYBIND11_SLICE_OBJECT *) m_ptr,
out-2022-06-12/pybind11_global-2.9.2.tar.gz: pybind11_global-2.9.2/pybind11/include/pybind11/pytypes.h: return PySlice_GetIndicesEx(
out-2022-06-12/tweedledum-1.1.1.tar.gz: tweedledum-1.1.1/external/pybind11/include/pybind11/pybind11.h: #  pragma warning(disable: 4505) // warning C4505: 'PySlice_GetIndicesEx': unreferenced local function has been removed (PyPy only)
out-2022-06-12/tweedledum-1.1.1.tar.gz: tweedledum-1.1.1/external/pybind11/include/pybind11/pytypes.h: return PySlice_GetIndicesEx((PYBIND11_SLICE_OBJECT *) m_ptr,
out-2022-06-12/tweedledum-1.1.1.tar.gz: tweedledum-1.1.1/external/pybind11/include/pybind11/pytypes.h: return PySlice_GetIndicesEx((PYBIND11_SLICE_OBJECT *) m_ptr,
out-2022-06-12/Theano-1.0.5.tar.gz: Theano-1.0.5/theano/tensor/subtensor.py: // PySlice_GetIndicesEx in python source
out-2022-06-12/Theano-1.0.5.tar.gz: Theano-1.0.5/theano/tensor/subtensor.py: # Before Python 2.5, PySlice_GetIndicesEx requires
out-2022-06-12/lxml-4.9.0.tar.gz: lxml-4.9.0/src/lxml/apihelpers.pxi: python.PySlice_GetIndicesEx(
out-2022-06-12/lxml-4.9.0.tar.gz: lxml-4.9.0/src/lxml/includes/etree_defs.h: /* PySlice_GetIndicesEx() has wrong signature in Py<=3.1 */
out-2022-06-12/lxml-4.9.0.tar.gz: lxml-4.9.0/src/lxml/includes/etree_defs.h: #  define _lx_PySlice_GetIndicesEx(o, l, b, e, s, sl) PySlice_GetIndicesEx(o, l, b, e, s, sl)
out-2022-06-12/lxml-4.9.0.tar.gz: lxml-4.9.0/src/lxml/includes/etree_defs.h: #  define _lx_PySlice_GetIndicesEx(o, l, b, e, s, sl) PySlice_GetIndicesEx(((PySliceObject*)o), l, b, e, s, sl)
out-2022-06-12/lxml-4.9.0.tar.gz: lxml-4.9.0/src/lxml/python.pxd: cdef int PySlice_GetIndicesEx "_lx_PySlice_GetIndicesEx" (
out-2022-06-12/dlib-19.24.0.tar.gz: dlib-19.24.0/dlib/external/pybind11/include/pybind11/pytypes.h: return PySlice_GetIndicesEx((PYBIND11_SLICE_OBJECT *) m_ptr,

Time: 0:00:19.726168
Found 130 matching lines in 41 projects

Combined, 172 matching lines in 45 projects (3.4%) for \bPySlice_GetIndices:

Summary
$ python ~/github/misc/cpython/search_pypi_top.py out-2022-06-12 "\bPySlice_GetIndices" -q
out-2022-06-12/numba-0.55.2.tar.gz: numba-0.55.2/numba/cpython/slicing.py: # See PySlice_GetIndicesEx()
out-2022-06-12/numba-0.55.2.tar.gz: numba-0.55.2/numba/cpython/slicing.py: (see PySlice_GetIndicesEx() in CPython)
out-2022-06-12/ruamel.ordereddict-0.4.15.tar.gz: ruamel.ordereddict-0.4.15/ordereddict.c: if (PySlice_GetIndicesEx(
out-2022-06-12/ruamel.ordereddict-0.4.15.tar.gz: ruamel.ordereddict-0.4.15/ordereddict.c: if (PySlice_GetIndicesEx(
out-2022-06-12/pygame-2.1.2.tar.gz: pygame-2.1.2/src_c/math.c: if (PySlice_GetIndicesEx((PyObject *)key, self->dim, &start, &stop,
out-2022-06-12/pygame-2.1.2.tar.gz: pygame-2.1.2/src_c/math.c: if (PySlice_GetIndicesEx((PyObject *)key, self->dim, &start, &stop,
out-2022-06-12/pygame-2.1.2.tar.gz: pygame-2.1.2/src_c/pgcompat.h: PySlice_GetIndicesEx(slice, length, start, stop, step, slicelength)
out-2022-06-12/pygame-2.1.2.tar.gz: pygame-2.1.2/src_c/rect.c: if (PySlice_GetIndicesEx(op, 4, &start, &stop, &step, &slicelen)) {
out-2022-06-12/pygame-2.1.2.tar.gz: pygame-2.1.2/src_c/rect.c: if (PySlice_GetIndicesEx(op, 4, &start, &stop, &step, &slicelen)) {
out-2022-06-12/mpi4py-3.1.3.tar.gz: mpi4py-3.1.3/src/mpi4py/MPI/asbuffer.pxi: int PySlice_GetIndicesEx(object, Py_ssize_t,
out-2022-06-12/mpi4py-3.1.3.tar.gz: mpi4py-3.1.3/src/mpi4py/MPI/asbuffer.pxi: PySlice_GetIndicesEx(item, blen, &start, &stop, &step, &slen)
out-2022-06-12/mpi4py-3.1.3.tar.gz: mpi4py-3.1.3/src/mpi4py/MPI/asbuffer.pxi: PySlice_GetIndicesEx(item, blen, &start, &stop, &step, &slen)
out-2022-06-12/mpi4py-3.1.3.tar.gz: mpi4py-3.1.3/src/pycompat.h: #ifdef PySlice_GetIndicesEx
out-2022-06-12/mpi4py-3.1.3.tar.gz: mpi4py-3.1.3/src/pycompat.h: #undef PySlice_GetIndicesEx
out-2022-06-12/mpi4py-3.1.3.tar.gz: mpi4py-3.1.3/src/pycompat.h: #define PySlice_GetIndicesEx(s, n, start, stop, step, length) \
out-2022-06-12/mpi4py-3.1.3.tar.gz: mpi4py-3.1.3/src/pycompat.h: #define PySlice_GetIndicesEx(s, n, start, stop, step, length) \
out-2022-06-12/mpi4py-3.1.3.tar.gz: mpi4py-3.1.3/src/pycompat.h: PySlice_GetIndicesEx((PySliceObject *)(s), n, start, stop, step, length)
out-2022-06-12/mpi4py-3.1.3.tar.gz: mpi4py-3.1.3/src/pycompat.h: #define PySlice_GetIndicesEx(s, n, start, stop, step, length) \
out-2022-06-12/mpi4py-3.1.3.tar.gz: mpi4py-3.1.3/src/pycompat.h: PySlice_GetIndicesEx((PySliceObject *)(s), n, start, stop, step, length)
out-2022-06-12/pyrsistent-0.18.1.tar.gz: pyrsistent-0.18.1/pvectorcmodule.c: if (PySlice_GetIndicesEx(SLICE_CAST item, self->count,
out-2022-06-12/asyncpg-0.25.0.tar.gz: asyncpg-0.25.0/asyncpg/protocol/record/recordobj.c: if (PySlice_GetIndicesEx(
out-2022-06-12/Cython-0.29.30.tar.gz: Cython-0.29.30/Cython/Includes/cpython/slice.pxd: int PySlice_GetIndices(object slice, Py_ssize_t length,
out-2022-06-12/Cython-0.29.30.tar.gz: Cython-0.29.30/Cython/Includes/cpython/slice.pxd: int PySlice_GetIndicesEx(object slice, Py_ssize_t length,
out-2022-06-12/Cython-0.29.30.tar.gz: Cython-0.29.30/Cython/Includes/cpython/slice.pxd: # Usable replacement for PySlice_GetIndices(). Retrieve the start, stop, and step
out-2022-06-12/scipy-1.8.1.tar.gz: scipy-1.8.1/scipy/_lib/boost/boost/python/slice.hpp: // PySlice_GetIndicesEx() in the Python/C API, but tailored for C++ users.
out-2022-06-12/scipy-1.8.1.tar.gz: scipy-1.8.1/scipy/_lib/boost/boost/python/slice.hpp: // This is based loosely on PySlice_GetIndicesEx(), but it has been
out-2022-06-12/vaex-core-4.9.2.tar.gz: vaex-core-4.9.2/vendor/pybind11/include/pybind11/pytypes.h: return PySlice_GetIndicesEx((PYBIND11_SLICE_OBJECT *) m_ptr,
out-2022-06-12/regex-2022.6.2.tar.gz: regex-2022.6.2/regex_3/_regex.c: /* Issue 29943: PySlice_GetIndicesEx change broke ABI in 3.5 and 3.6 branches
out-2022-06-12/regex-2022.6.2.tar.gz: regex-2022.6.2/regex_3/_regex.c: #if defined(PySlice_GetIndicesEx) && !defined(PYPY_VERSION)
out-2022-06-12/regex-2022.6.2.tar.gz: regex-2022.6.2/regex_3/_regex.c: #undef PySlice_GetIndicesEx
out-2022-06-12/regex-2022.6.2.tar.gz: regex-2022.6.2/regex_3/_regex.c: if (PySlice_GetIndicesEx(slice, (Py_ssize_t)self->group_count + 1, &start,
out-2022-06-12/numpy-1.22.4.zip: numpy-1.22.4/numpy/core/include/numpy/npy_3kcompat.h: /* Py3 changes PySlice_GetIndicesEx' first argument's type to PyObject* */
out-2022-06-12/numpy-1.22.4.zip: numpy-1.22.4/numpy/core/include/numpy/npy_3kcompat.h: #  define NpySlice_GetIndicesEx PySlice_GetIndicesEx
out-2022-06-12/numpy-1.22.4.zip: numpy-1.22.4/numpy/core/include/numpy/npy_3kcompat.h: PySlice_GetIndicesEx((PySliceObject *)op, nop, start, end, step, slicelength)
out-2022-06-12/numpy-1.22.4.zip: numpy-1.22.4/numpy/core/src/multiarray/iterators.c: if (PySlice_GetIndicesEx(op, max, &i, &stop, step_size, n_steps) < 0) {
out-2022-06-12/numpy-1.22.4.zip: numpy-1.22.4/numpy/core/src/multiarray/nditer_pywrap.c: if (PySlice_GetIndicesEx(op, NpyIter_GetNOp(self->iter),
out-2022-06-12/numpy-1.22.4.zip: numpy-1.22.4/numpy/core/src/multiarray/nditer_pywrap.c: if (PySlice_GetIndicesEx(op, NpyIter_GetNOp(self->iter),
out-2022-06-12/numpy-1.22.4.zip: numpy-1.22.4/numpy/core/src/multiarray/mapping.c: if (PySlice_GetIndicesEx(indices[i].object,
out-2022-06-12/osmium-3.3.0.tar.gz: osmium-3.3.0/contrib/pybind11/include/pybind11/detail/common.h: // C4505: 'PySlice_GetIndicesEx': unreferenced local function has been removed (PyPy only)
out-2022-06-12/osmium-3.3.0.tar.gz: osmium-3.3.0/contrib/pybind11/include/pybind11/pytypes.h: return PySlice_GetIndicesEx((PYBIND11_SLICE_OBJECT *) m_ptr,
out-2022-06-12/osmium-3.3.0.tar.gz: osmium-3.3.0/contrib/pybind11/include/pybind11/pytypes.h: return PySlice_GetIndicesEx((PYBIND11_SLICE_OBJECT *) m_ptr,
out-2022-06-12/PyQt5-5.15.6.tar.gz: PyQt5-5.15.6/ChangeLog: Replaced calls to PySlice_GetIndicesEx() with
out-2022-06-12/wxPython-4.1.1.tar.gz: wxPython-4.1.1/sip/siplib/siplib.c: * Implement PySlice_GetIndicesEx() (or its subsequent replacement).
out-2022-06-12/wxPython-4.1.1.tar.gz: wxPython-4.1.1/sip/siplib/siplib.c: return PySlice_GetIndicesEx(slice, length, start, stop, step, slicelength);
out-2022-06-12/wxPython-4.1.1.tar.gz: wxPython-4.1.1/sip/siplib/siplib.c: return PySlice_GetIndicesEx((PySliceObject *)slice, length, start, stop,
out-2022-06-12/PyQt5_sip-12.10.1.tar.gz: PyQt5_sip-12.10.1/siplib.c: * Implement PySlice_GetIndicesEx() (or its subsequent replacement).
out-2022-06-12/guppy3-3.1.2.tar.gz: guppy3-3.1.2/src/sets/bitset.c: /* stripped down & specialized version of PySlice_GetIndices
out-2022-06-12/recordclass-0.17.2.tar.gz: recordclass-0.17.2/lib/recordclass/_litelist.c: if (PySlice_GetIndicesEx(item, (PyTuple_GET_SIZE(self)), &start, &stop, &step, &slicelength) < 0)
out-2022-06-12/recordclass-0.17.2.tar.gz: recordclass-0.17.2/lib/recordclass/_litelist.c: if (PySlice_GetIndicesEx(item, (Py_SIZE(self)), &start, &stop, &step, &slicelength) < 0)
out-2022-06-12/recordclass-0.17.2.tar.gz: recordclass-0.17.2/lib/recordclass/_litetuple.c: if (PySlice_GetIndicesEx(item, (PyTuple_GET_SIZE(self)), &start, &stop, &step, &slicelength) < 0)
out-2022-06-12/recordclass-0.17.2.tar.gz: recordclass-0.17.2/lib/recordclass/_litetuple.c: if (PySlice_GetIndicesEx(item, (Py_SIZE(self)), &start, &stop, &step, &slicelength) < 0)
out-2022-06-12/orderedset-2.0.3.tar.gz: orderedset-2.0.3/lib/orderedset/_orderedset.pyx: int PySlice_GetIndicesEx(slice, ssize_t length, ssize_t *start, ssize_t *stop, ssize_t *step, ssize_t *slicelength) except -1
out-2022-06-12/orderedset-2.0.3.tar.gz: orderedset-2.0.3/lib/orderedset/_orderedset.pyx: PySlice_GetIndicesEx(item, len(self), &start, &stop, &step, &slicelength)
out-2022-06-12/Theano-PyMC-1.1.2.tar.gz: Theano-PyMC-1.1.2/theano/tensor/subtensor.py: // PySlice_GetIndicesEx in python source
out-2022-06-12/Pillow-9.1.1.tar.gz: Pillow-9.1.1/src/path.c: if (PySlice_GetIndicesEx(item, len, &start, &stop, &step, &slicelength) < 0) {
out-2022-06-12/BTrees-4.10.0.tar.gz: BTrees-4.10.0/src/BTrees/BTreeItemsTemplate.c: if (PySlice_GetIndicesEx(SLICEOBJ(subscript), len,
out-2022-06-12/cffi-1.15.0.tar.gz: cffi-1.15.0/c/minibuffer.h: /* pfffffffffffff#2: the PySlice_GetIndicesEx() *macro* should not
out-2022-06-12/cffi-1.15.0.tar.gz: cffi-1.15.0/c/minibuffer.h: #if PY_VERSION_HEX < 0x03070000 && defined(PySlice_GetIndicesEx) && !defined(PYPY_VERSION)
out-2022-06-12/cffi-1.15.0.tar.gz: cffi-1.15.0/c/minibuffer.h: #undef PySlice_GetIndicesEx
out-2022-06-12/cffi-1.15.0.tar.gz: cffi-1.15.0/c/minibuffer.h: if (PySlice_GetIndicesEx(item, self->mb_size,
out-2022-06-12/cffi-1.15.0.tar.gz: cffi-1.15.0/c/minibuffer.h: if (PySlice_GetIndicesEx(item, self->mb_size,
out-2022-06-12/pybind11-2.9.2.tar.gz: pybind11-2.9.2/pybind11/include/pybind11/detail/common.h: // C4505: 'PySlice_GetIndicesEx': unreferenced local function has been removed (PyPy only)
out-2022-06-12/pybind11-2.9.2.tar.gz: pybind11-2.9.2/pybind11/include/pybind11/pytypes.h: return PySlice_GetIndicesEx((PYBIND11_SLICE_OBJECT *) m_ptr,
out-2022-06-12/pybind11-2.9.2.tar.gz: pybind11-2.9.2/pybind11/include/pybind11/pytypes.h: return PySlice_GetIndicesEx(
out-2022-06-12/awkward-1.8.0.tar.gz: awkward-1.8.0/pybind11/include/pybind11/detail/common.h: // C4505: 'PySlice_GetIndicesEx': unreferenced local function has been removed (PyPy only)
out-2022-06-12/awkward-1.8.0.tar.gz: awkward-1.8.0/pybind11/include/pybind11/pytypes.h: return PySlice_GetIndicesEx((PYBIND11_SLICE_OBJECT *) m_ptr,
out-2022-06-12/awkward-1.8.0.tar.gz: awkward-1.8.0/pybind11/include/pybind11/pytypes.h: return PySlice_GetIndicesEx((PYBIND11_SLICE_OBJECT *) m_ptr,
out-2022-06-12/pyodbc-4.0.32.tar.gz: pyodbc-4.0.32/src/row.cpp: if (PySlice_GetIndicesEx(key, row->cValues, &start, &stop, &step, &slicelength) < 0)
out-2022-06-12/pyodbc-4.0.32.tar.gz: pyodbc-4.0.32/src/row.cpp: if (PySlice_GetIndicesEx((PySliceObject*)key, row->cValues, &start, &stop, &step, &slicelength) < 0)
out-2022-06-12/sip-6.6.1.tar.gz: sip-6.6.1/sipbuild/module/source/12/siplib.c: * Implement PySlice_GetIndicesEx() (or its subsequent replacement).
out-2022-06-12/sip-6.6.1.tar.gz: sip-6.6.1/sipbuild/module/source/13/siplib.c: * Implement PySlice_GetIndicesEx() (or its subsequent replacement).
out-2022-06-12/sip-6.6.1.tar.gz: sip-6.6.1/sipbuild/module/source/13/siplib.c: return PySlice_GetIndicesEx(slice, length, start, stop, step, slicelength);
out-2022-06-12/igraph-0.9.11.tar.gz: igraph-0.9.11/src/_igraph/convert.c: if (PySlice_GetIndicesEx(o, no_of_vertices, &start, &stop, &step, &slicelength))
out-2022-06-12/igraph-0.9.11.tar.gz: igraph-0.9.11/src/_igraph/edgeseqobject.c: ok = (PySlice_GetIndicesEx(item, m, &start, &stop, &step, &sl) == 0);
out-2022-06-12/igraph-0.9.11.tar.gz: igraph-0.9.11/src/_igraph/vertexseqobject.c: ok = (PySlice_GetIndicesEx(item, m, &start, &stop, &step, &sl) == 0);
out-2022-06-12/PyICU-2.9.tar.gz: PyICU-2.9/bases.cpp: if (PySlice_GetIndicesEx(key, length,
out-2022-06-12/PyICU-2.9.tar.gz: PyICU-2.9/bases.cpp: if (PySlice_GetIndicesEx(key, length,
out-2022-06-12/onnx-1.11.0.tar.gz: onnx-1.11.0/third_party/pybind11/include/pybind11/pybind11.h: #  pragma warning(disable: 4505) // warning C4505: 'PySlice_GetIndicesEx': unreferenced local function has been removed (PyPy only)
out-2022-06-12/onnx-1.11.0.tar.gz: onnx-1.11.0/third_party/pybind11/include/pybind11/pytypes.h: return PySlice_GetIndicesEx((PYBIND11_SLICE_OBJECT *) m_ptr,
out-2022-06-12/onnx-1.11.0.tar.gz: onnx-1.11.0/third_party/pybind11/include/pybind11/pytypes.h: return PySlice_GetIndicesEx((PYBIND11_SLICE_OBJECT *) m_ptr,
out-2022-06-12/cvxopt-1.3.0.tar.gz: cvxopt-1.3.0/src/C/dense.c: if (PySlice_GetIndicesEx(A, dim, &start, &stop, &step, &lgt) < 0)
out-2022-06-12/cvxopt-1.3.0.tar.gz: cvxopt-1.3.0/src/C/dense.c: if (PySlice_GetIndicesEx((PySliceObject*)A, dim,
out-2022-06-12/cvxopt-1.3.0.tar.gz: cvxopt-1.3.0/src/C/dense.c: if ( (PySlice_GetIndicesEx(argI, MAT_NROWS(self), &rowstart, &rowstop,
out-2022-06-12/cvxopt-1.3.0.tar.gz: cvxopt-1.3.0/src/C/dense.c: (PySlice_GetIndicesEx(argJ, MAT_NCOLS(self), &colstart, &colstop,
out-2022-06-12/cvxopt-1.3.0.tar.gz: cvxopt-1.3.0/src/C/dense.c: if ( (PySlice_GetIndicesEx((PySliceObject*)argI, MAT_NROWS(self),
out-2022-06-12/cvxopt-1.3.0.tar.gz: cvxopt-1.3.0/src/C/dense.c: (PySlice_GetIndicesEx((PySliceObject*)argJ, MAT_NCOLS(self),
out-2022-06-12/cvxopt-1.3.0.tar.gz: cvxopt-1.3.0/src/C/dense.c: if ( (PySlice_GetIndicesEx(argI, MAT_NROWS(self), &rowstart, &rowstop,
out-2022-06-12/cvxopt-1.3.0.tar.gz: cvxopt-1.3.0/src/C/dense.c: (PySlice_GetIndicesEx(argJ, MAT_NCOLS(self), &colstart, &colstop,
out-2022-06-12/cvxopt-1.3.0.tar.gz: cvxopt-1.3.0/src/C/dense.c: if ( (PySlice_GetIndicesEx((PySliceObject*)argI, MAT_NROWS(self),
out-2022-06-12/cvxopt-1.3.0.tar.gz: cvxopt-1.3.0/src/C/dense.c: (PySlice_GetIndicesEx((PySliceObject*)argJ, MAT_NCOLS(self),
out-2022-06-12/cvxopt-1.3.0.tar.gz: cvxopt-1.3.0/src/C/sparse.c: if (PySlice_GetIndicesEx(argI, SP_NROWS(self), &rowstart, &rowstop,
out-2022-06-12/cvxopt-1.3.0.tar.gz: cvxopt-1.3.0/src/C/sparse.c: if (PySlice_GetIndicesEx((PySliceObject*)argI, SP_NROWS(self),
out-2022-06-12/cvxopt-1.3.0.tar.gz: cvxopt-1.3.0/src/C/sparse.c: if (PySlice_GetIndicesEx(argJ, SP_NCOLS(self), &colstart, &colstop,
out-2022-06-12/cvxopt-1.3.0.tar.gz: cvxopt-1.3.0/src/C/sparse.c: if (PySlice_GetIndicesEx((PySliceObject*)argJ, SP_NCOLS(self),
out-2022-06-12/protobuf-4.21.1.tar.gz: protobuf-4.21.1/google/protobuf/pyext/message.cc: PySlice_GetIndicesEx(slice, length, &from, &to, &step, &slice_length);
out-2022-06-12/protobuf-4.21.1.tar.gz: protobuf-4.21.1/google/protobuf/pyext/repeated_composite_container.cc: if (PySlice_GetIndicesEx(item, length, &from, &to, &step, &slicelength) ==
out-2022-06-12/protobuf-4.21.1.tar.gz: protobuf-4.21.1/google/protobuf/pyext/repeated_scalar_container.cc: if (PySlice_GetIndicesEx(slice, length, &from, &to, &step, &slicelength) ==
out-2022-06-12/protobuf-4.21.1.tar.gz: protobuf-4.21.1/google/protobuf/pyext/repeated_scalar_container.cc: if (PySlice_GetIndicesEx(slice, length, &from, &to, &step, &slicelength) ==
out-2022-06-12/onnxoptimizer-0.2.7.tar.gz: onnxoptimizer-0.2.7/third_party/onnx/third_party/pybind11/include/pybind11/pybind11.h: #  pragma warning(disable: 4505) // warning C4505: 'PySlice_GetIndicesEx': unreferenced local function has been removed (PyPy only)
out-2022-06-12/onnxoptimizer-0.2.7.tar.gz: onnxoptimizer-0.2.7/third_party/onnx/third_party/pybind11/include/pybind11/pytypes.h: return PySlice_GetIndicesEx((PYBIND11_SLICE_OBJECT *) m_ptr,
out-2022-06-12/onnxoptimizer-0.2.7.tar.gz: onnxoptimizer-0.2.7/third_party/onnx/third_party/pybind11/include/pybind11/pytypes.h: return PySlice_GetIndicesEx((PYBIND11_SLICE_OBJECT *) m_ptr,
out-2022-06-12/onnxoptimizer-0.2.7.tar.gz: onnxoptimizer-0.2.7/third_party/protobuf/python/google/protobuf/pyext/message.cc: PySlice_GetIndicesEx(slice, length, &from, &to, &step, &slice_length);
out-2022-06-12/onnxoptimizer-0.2.7.tar.gz: onnxoptimizer-0.2.7/third_party/protobuf/python/google/protobuf/pyext/repeated_composite_container.cc: if (PySlice_GetIndicesEx(item, length, &from, &to, &step, &slicelength) ==
out-2022-06-12/onnxoptimizer-0.2.7.tar.gz: onnxoptimizer-0.2.7/third_party/protobuf/python/google/protobuf/pyext/repeated_scalar_container.cc: if (PySlice_GetIndicesEx(slice, length, &from, &to, &step, &slicelength) ==
out-2022-06-12/onnxoptimizer-0.2.7.tar.gz: onnxoptimizer-0.2.7/third_party/protobuf/python/google/protobuf/pyext/repeated_scalar_container.cc: if (PySlice_GetIndicesEx(slice, length, &from, &to, &step, &slicelength) ==
out-2022-06-12/pandas-1.4.2.tar.gz: pandas-1.4.2/pandas/_libs/internals.pyx: from cpython.slice cimport PySlice_GetIndicesEx
out-2022-06-12/pandas-1.4.2.tar.gz: pandas-1.4.2/pandas/_libs/internals.pyx: PySlice_GetIndicesEx(slc, objlen, &start, &stop, &step, &length)
out-2022-06-12/pandas-1.4.2.tar.gz: pandas-1.4.2/pandas/_libs/internals.pyx: PySlice_GetIndicesEx(slc, objlen, &start, &stop, &step, &length)
out-2022-06-12/cvxpy-1.2.1.tar.gz: cvxpy-1.2.1/cvxpy/cvxcore/python/cvxcore_wrap.cxx: PySlice_GetIndices(SWIGPY_SLICE_ARG(slice), (Py_ssize_t)self->size(), &i, &j, &step);
out-2022-06-12/cvxpy-1.2.1.tar.gz: cvxpy-1.2.1/cvxpy/cvxcore/python/cvxcore_wrap.cxx: PySlice_GetIndices(SWIGPY_SLICE_ARG(slice), (Py_ssize_t)self->size(), &i, &j, &step);
out-2022-06-12/cvxpy-1.2.1.tar.gz: cvxpy-1.2.1/cvxpy/cvxcore/python/cvxcore_wrap.cxx: PySlice_GetIndices(SWIGPY_SLICE_ARG(slice), (Py_ssize_t)self->size(), &i, &j, &step);
out-2022-06-12/cvxpy-1.2.1.tar.gz: cvxpy-1.2.1/cvxpy/cvxcore/python/cvxcore_wrap.cxx: PySlice_GetIndices(SWIGPY_SLICE_ARG(slice), (Py_ssize_t)self->size(), &i, &j, &step);
out-2022-06-12/cvxpy-1.2.1.tar.gz: cvxpy-1.2.1/cvxpy/cvxcore/python/cvxcore_wrap.cxx: PySlice_GetIndices(SWIGPY_SLICE_ARG(slice), (Py_ssize_t)self->size(), &i, &j, &step);
out-2022-06-12/cvxpy-1.2.1.tar.gz: cvxpy-1.2.1/cvxpy/cvxcore/python/cvxcore_wrap.cxx: PySlice_GetIndices(SWIGPY_SLICE_ARG(slice), (Py_ssize_t)self->size(), &i, &j, &step);
out-2022-06-12/cvxpy-1.2.1.tar.gz: cvxpy-1.2.1/cvxpy/cvxcore/python/cvxcore_wrap.cxx: PySlice_GetIndices(SWIGPY_SLICE_ARG(slice), (Py_ssize_t)self->size(), &i, &j, &step);
out-2022-06-12/cvxpy-1.2.1.tar.gz: cvxpy-1.2.1/cvxpy/cvxcore/python/cvxcore_wrap.cxx: PySlice_GetIndices(SWIGPY_SLICE_ARG(slice), (Py_ssize_t)self->size(), &i, &j, &step);
out-2022-06-12/cvxpy-1.2.1.tar.gz: cvxpy-1.2.1/cvxpy/cvxcore/python/cvxcore_wrap.cxx: PySlice_GetIndices(SWIGPY_SLICE_ARG(slice), (Py_ssize_t)self->size(), &i, &j, &step);
out-2022-06-12/cvxpy-1.2.1.tar.gz: cvxpy-1.2.1/cvxpy/cvxcore/python/cvxcore_wrap.cxx: PySlice_GetIndices(SWIGPY_SLICE_ARG(slice), (Py_ssize_t)self->size(), &i, &j, &step);
out-2022-06-12/cvxpy-1.2.1.tar.gz: cvxpy-1.2.1/cvxpy/cvxcore/python/cvxcore_wrap.cxx: PySlice_GetIndices(SWIGPY_SLICE_ARG(slice), (Py_ssize_t)self->size(), &i, &j, &step);
out-2022-06-12/cvxpy-1.2.1.tar.gz: cvxpy-1.2.1/cvxpy/cvxcore/python/cvxcore_wrap.cxx: PySlice_GetIndices(SWIGPY_SLICE_ARG(slice), (Py_ssize_t)self->size(), &i, &j, &step);
out-2022-06-12/cvxpy-1.2.1.tar.gz: cvxpy-1.2.1/cvxpy/cvxcore/python/cvxcore_wrap.cxx: PySlice_GetIndices(SWIGPY_SLICE_ARG(slice), (Py_ssize_t)self->size(), &i, &j, &step);
out-2022-06-12/cvxpy-1.2.1.tar.gz: cvxpy-1.2.1/cvxpy/cvxcore/python/cvxcore_wrap.cxx: PySlice_GetIndices(SWIGPY_SLICE_ARG(slice), (Py_ssize_t)self->size(), &i, &j, &step);
out-2022-06-12/cvxpy-1.2.1.tar.gz: cvxpy-1.2.1/cvxpy/cvxcore/python/cvxcore_wrap.cxx: PySlice_GetIndices(SWIGPY_SLICE_ARG(slice), (Py_ssize_t)self->size(), &i, &j, &step);
out-2022-06-12/cvxpy-1.2.1.tar.gz: cvxpy-1.2.1/cvxpy/cvxcore/python/cvxcore_wrap.cxx: PySlice_GetIndices(SWIGPY_SLICE_ARG(slice), (Py_ssize_t)self->size(), &i, &j, &step);
out-2022-06-12/cvxpy-1.2.1.tar.gz: cvxpy-1.2.1/cvxpy/cvxcore/python/cvxcore_wrap.cxx: PySlice_GetIndices(SWIGPY_SLICE_ARG(slice), (Py_ssize_t)self->size(), &i, &j, &step);
out-2022-06-12/cvxpy-1.2.1.tar.gz: cvxpy-1.2.1/cvxpy/cvxcore/python/cvxcore_wrap.cxx: PySlice_GetIndices(SWIGPY_SLICE_ARG(slice), (Py_ssize_t)self->size(), &i, &j, &step);
out-2022-06-12/cvxpy-1.2.1.tar.gz: cvxpy-1.2.1/cvxpy/cvxcore/python/cvxcore_wrap.cxx: PySlice_GetIndices(SWIGPY_SLICE_ARG(slice), (Py_ssize_t)self->size(), &i, &j, &step);
out-2022-06-12/cvxpy-1.2.1.tar.gz: cvxpy-1.2.1/cvxpy/cvxcore/python/cvxcore_wrap.cxx: PySlice_GetIndices(SWIGPY_SLICE_ARG(slice), (Py_ssize_t)self->size(), &i, &j, &step);
out-2022-06-12/cvxpy-1.2.1.tar.gz: cvxpy-1.2.1/cvxpy/cvxcore/python/cvxcore_wrap.cxx: PySlice_GetIndices(SWIGPY_SLICE_ARG(slice), (Py_ssize_t)self->size(), &i, &j, &step);
out-2022-06-12/cvxpy-1.2.1.tar.gz: cvxpy-1.2.1/cvxpy/cvxcore/python/cvxcore_wrap.cxx: PySlice_GetIndices(SWIGPY_SLICE_ARG(slice), (Py_ssize_t)self->size(), &i, &j, &step);
out-2022-06-12/cvxpy-1.2.1.tar.gz: cvxpy-1.2.1/cvxpy/cvxcore/python/cvxcore_wrap.cxx: PySlice_GetIndices(SWIGPY_SLICE_ARG(slice), (Py_ssize_t)self->size(), &i, &j, &step);
out-2022-06-12/cvxpy-1.2.1.tar.gz: cvxpy-1.2.1/cvxpy/cvxcore/python/cvxcore_wrap.cxx: PySlice_GetIndices(SWIGPY_SLICE_ARG(slice), (Py_ssize_t)self->size(), &i, &j, &step);
out-2022-06-12/bitarray-2.5.1.tar.gz: bitarray-2.5.1/bitarray/_bitarray.c: if (PySlice_GetIndicesEx(item, self->nbits,
out-2022-06-12/bitarray-2.5.1.tar.gz: bitarray-2.5.1/bitarray/_bitarray.c: if (PySlice_GetIndicesEx(slice, self->nbits,
out-2022-06-12/bitarray-2.5.1.tar.gz: bitarray-2.5.1/bitarray/_bitarray.c: if (PySlice_GetIndicesEx(slice, self->nbits,
out-2022-06-12/bitarray-2.5.1.tar.gz: bitarray-2.5.1/bitarray/_bitarray.c: if (PySlice_GetIndicesEx(slice, self->nbits,
out-2022-06-12/bitarray-2.5.1.tar.gz: bitarray-2.5.1/bitarray/bitarray.h: #define PySlice_GetIndicesEx(slice, len, start, stop, step, slicelength) \
out-2022-06-12/bitarray-2.5.1.tar.gz: bitarray-2.5.1/bitarray/bitarray.h: PySlice_GetIndicesEx(((PySliceObject *) slice),                      \
out-2022-06-12/pyobjc-core-8.5.tar.gz: pyobjc-core-8.5/Modules/objc/struct-wrapper.m: if (PySlice_GetIndicesEx(item, STRUCT_LENGTH(self), &start, &stop, &step,
out-2022-06-12/pyobjc-core-8.5.tar.gz: pyobjc-core-8.5/Modules/objc/struct-wrapper.m: if (PySlice_GetIndicesEx(item, STRUCT_LENGTH(self), &start, &stop, &step,
out-2022-06-12/mercurial-6.1.3.tar.gz: mercurial-6.1.3/mercurial/cext/revlog.c: if (PySlice_GetIndicesEx(item, length, &start, &stop, &step,
out-2022-06-12/mercurial-6.1.3.tar.gz: mercurial-6.1.3/mercurial/cext/revlog.c: if (PySlice_GetIndicesEx((PySliceObject *)item, length, &start, &stop,
out-2022-06-12/biopython-1.79.tar.gz: biopython-1.79/Bio/Cluster/clustermodule.c: if (PySlice_GetIndicesEx(item, self->n, &start, &stop, &step,
out-2022-06-12/pybind11_global-2.9.2.tar.gz: pybind11_global-2.9.2/pybind11/include/pybind11/detail/common.h: // C4505: 'PySlice_GetIndicesEx': unreferenced local function has been removed (PyPy only)
out-2022-06-12/pybind11_global-2.9.2.tar.gz: pybind11_global-2.9.2/pybind11/include/pybind11/pytypes.h: return PySlice_GetIndicesEx((PYBIND11_SLICE_OBJECT *) m_ptr,
out-2022-06-12/pybind11_global-2.9.2.tar.gz: pybind11_global-2.9.2/pybind11/include/pybind11/pytypes.h: return PySlice_GetIndicesEx(
out-2022-06-12/pythran-0.11.0.tar.gz: pythran-0.11.0/pythran/pythonic/types/slice.hpp: PySlice_GetIndices((PyObject *)obj, PY_SSIZE_T_MAX, &start, &stop, &step);
out-2022-06-12/pythran-0.11.0.tar.gz: pythran-0.11.0/pythran/pythonic/types/slice.hpp: PySlice_GetIndices((PySliceObject *)obj, PY_SSIZE_T_MAX, &start, &stop,
out-2022-06-12/tweedledum-1.1.1.tar.gz: tweedledum-1.1.1/external/pybind11/include/pybind11/pybind11.h: #  pragma warning(disable: 4505) // warning C4505: 'PySlice_GetIndicesEx': unreferenced local function has been removed (PyPy only)
out-2022-06-12/tweedledum-1.1.1.tar.gz: tweedledum-1.1.1/external/pybind11/include/pybind11/pytypes.h: return PySlice_GetIndicesEx((PYBIND11_SLICE_OBJECT *) m_ptr,
out-2022-06-12/tweedledum-1.1.1.tar.gz: tweedledum-1.1.1/external/pybind11/include/pybind11/pytypes.h: return PySlice_GetIndicesEx((PYBIND11_SLICE_OBJECT *) m_ptr,
out-2022-06-12/Theano-1.0.5.tar.gz: Theano-1.0.5/theano/tensor/subtensor.py: // PySlice_GetIndicesEx in python source
out-2022-06-12/Theano-1.0.5.tar.gz: Theano-1.0.5/theano/tensor/subtensor.py: # Before Python 2.5, PySlice_GetIndicesEx requires
out-2022-06-12/lxml-4.9.0.tar.gz: lxml-4.9.0/src/lxml/apihelpers.pxi: python.PySlice_GetIndicesEx(
out-2022-06-12/lxml-4.9.0.tar.gz: lxml-4.9.0/src/lxml/includes/etree_defs.h: /* PySlice_GetIndicesEx() has wrong signature in Py<=3.1 */
out-2022-06-12/lxml-4.9.0.tar.gz: lxml-4.9.0/src/lxml/includes/etree_defs.h: #  define _lx_PySlice_GetIndicesEx(o, l, b, e, s, sl) PySlice_GetIndicesEx(o, l, b, e, s, sl)
out-2022-06-12/lxml-4.9.0.tar.gz: lxml-4.9.0/src/lxml/includes/etree_defs.h: #  define _lx_PySlice_GetIndicesEx(o, l, b, e, s, sl) PySlice_GetIndicesEx(((PySliceObject*)o), l, b, e, s, sl)
out-2022-06-12/lxml-4.9.0.tar.gz: lxml-4.9.0/src/lxml/python.pxd: cdef int PySlice_GetIndicesEx "_lx_PySlice_GetIndicesEx" (
out-2022-06-12/dlib-19.24.0.tar.gz: dlib-19.24.0/dlib/external/pybind11/include/pybind11/pytypes.h: return PySlice_GetIndicesEx((PYBIND11_SLICE_OBJECT *) m_ptr,
out-2022-06-12/python-crfsuite-0.9.8.tar.gz: python-crfsuite-0.9.8/crfsuite/swig/python/export_wrap.cpp: PySlice_GetIndices(SWIGPY_SLICE_ARG(slice), (Py_ssize_t)self->size(), &i, &j, &step);
out-2022-06-12/python-crfsuite-0.9.8.tar.gz: python-crfsuite-0.9.8/crfsuite/swig/python/export_wrap.cpp: PySlice_GetIndices(SWIGPY_SLICE_ARG(slice), (Py_ssize_t)self->size(), &i, &j, &step);
out-2022-06-12/python-crfsuite-0.9.8.tar.gz: python-crfsuite-0.9.8/crfsuite/swig/python/export_wrap.cpp: PySlice_GetIndices(SWIGPY_SLICE_ARG(slice), (Py_ssize_t)self->size(), &i, &j, &step);
out-2022-06-12/python-crfsuite-0.9.8.tar.gz: python-crfsuite-0.9.8/crfsuite/swig/python/export_wrap.cpp: PySlice_GetIndices(SWIGPY_SLICE_ARG(slice), (Py_ssize_t)self->size(), &i, &j, &step);
out-2022-06-12/python-crfsuite-0.9.8.tar.gz: python-crfsuite-0.9.8/crfsuite/swig/python/export_wrap.cpp: PySlice_GetIndices(SWIGPY_SLICE_ARG(slice), (Py_ssize_t)self->size(), &i, &j, &step);
out-2022-06-12/python-crfsuite-0.9.8.tar.gz: python-crfsuite-0.9.8/crfsuite/swig/python/export_wrap.cpp: PySlice_GetIndices(SWIGPY_SLICE_ARG(slice), (Py_ssize_t)self->size(), &i, &j, &step);
out-2022-06-12/python-crfsuite-0.9.8.tar.gz: python-crfsuite-0.9.8/crfsuite/swig/python/export_wrap.cpp: PySlice_GetIndices(SWIGPY_SLICE_ARG(slice), (Py_ssize_t)self->size(), &i, &j, &step);
out-2022-06-12/python-crfsuite-0.9.8.tar.gz: python-crfsuite-0.9.8/crfsuite/swig/python/export_wrap.cpp: PySlice_GetIndices(SWIGPY_SLICE_ARG(slice), (Py_ssize_t)self->size(), &i, &j, &step);
out-2022-06-12/python-crfsuite-0.9.8.tar.gz: python-crfsuite-0.9.8/crfsuite/swig/python/export_wrap.cpp: PySlice_GetIndices(SWIGPY_SLICE_ARG(slice), (Py_ssize_t)self->size(), &i, &j, &step);
out-2022-06-12/python-crfsuite-0.9.8.tar.gz: python-crfsuite-0.9.8/crfsuite/swig/python/export_wrap.cpp: PySlice_GetIndices(SWIGPY_SLICE_ARG(slice), (Py_ssize_t)self->size(), &i, &j, &step);
out-2022-06-12/python-crfsuite-0.9.8.tar.gz: python-crfsuite-0.9.8/crfsuite/swig/python/export_wrap.cpp: PySlice_GetIndices(SWIGPY_SLICE_ARG(slice), (Py_ssize_t)self->size(), &i, &j, &step);
out-2022-06-12/python-crfsuite-0.9.8.tar.gz: python-crfsuite-0.9.8/crfsuite/swig/python/export_wrap.cpp: PySlice_GetIndices(SWIGPY_SLICE_ARG(slice), (Py_ssize_t)self->size(), &i, &j, &step);

Time: 0:00:19.974677
Found 171 matching lines in 45 projects

The “You probably do not want to use this function” text was added in 2002 in This is my nearly two year old patch · python/cpython@5efaf7e · GitHub, for Python 2.3:

You probably do not want to use this function. If you want to use
slice objects in versions of Python prior to 2.3, you would probably
do well to incorporate the source of \cfunction{PySlice_GetIndicesEx},
suitably renamed, in the source of your extension.

And the reasoning removed in 2008: Remove many "versionchanged" items that didn't use the official markup, · python/cpython@e6bcc91 · GitHub

1 Like

Just to clarify (since I know people worry about breaking Cython): Cython’s use of these functions is only declaring their signatures in its C-API wrapper files. It’s just a way of letting users easily call C API functions from Cython code. Cython itself doesn’t use any of these functions.

If these functions were removed Cython itself won’t be affected, nor will any projects that use Cython and don’t manually use these C API functions.

3 Likes

Deprecating them both using Py_DEPRECATED, rather than by a note in the docs, sounds like a good idea.
However, they are part of the Stable ABI, so can’t be removed (unless the policy changes, but that’s a different conversation).
Note that people won’t see the deprecation warning for PySlice_GetIndicesEx unless the macro is deprecated. IMO the easiest way to do that is converting it to an inline function first, but it would be good to have tests before touching it, so it’s a bit of a rabbit hole.

1 Like

Both PySlice_GetIndices and PySlice_GetIndicesEx have a design flaw. They require getting the length of the sequence before Python objects start, stop and step be converted to the C type Py_ssize_t. Since the latter can trigger execution of Python code and releasing the GIL, the length of the sequence can change, and the resulting start and stop can be out of the valid range.

PySlice_GetIndicesEx exists in two variants: as a function and as a macro. The macro version is safe/ The function version is unsafe, but kept for binary compatibility. It is only used if you define low enough Py_LIMITED_API (less than 0x03050400 or between 0x03060000 and 0x03060100).

1 Like

Some functions, like PyUnicode_InternImmortal(), are exposed in the ABI, but were removed from the API.

1 Like

So if I understand correctly also PySlice_GetIndices is flawed and would be better to deprecate it too, right? In that case, what would be the right way to achieve the same effect of the 2 functions?

Look at the header: cpython/Include/sliceobject.h at 9430d27355c9f7d386abdac30d688dd6b68bb067 · python/cpython · GitHub

PySlice_GetIndicesEx is deprecated since 3.7 using Py_DEPRECATED(3.7). You can do the same for PySlice_GetIndices and 3.12. (The PR will also need a What’s New entry, & a docs update.)

The existing deprecation for PySlice_GetIndicesEx is ineffective because the function is shadowed by a macro. Py_DEPRECATED can’t be used on a macro, so it would need to be turned into a static inline function. PEP 670 PRs have a lot of examples of such conversions. Not sure why PySlice_GetIndicesEx wasn’t converted – maybe there’s some issue complicating things?

Yes. That’s possible, but IMO it doesn’t help too much more than deprecation. And it makes the tests cumbersome.

1 Like