Home
last modified time | relevance | path

Searched refs:PySlice_AdjustIndices (Results 1 – 19 of 19) sorted by relevance

/external/python/cpython3/Include/
Dsliceobject.h51 ((*(slicelen) = PySlice_AdjustIndices((length), (start), (stop), *(step))), \
55 PyAPI_FUNC(Py_ssize_t) PySlice_AdjustIndices(Py_ssize_t length,
/external/python/cpython3/Doc/c-api/
Dslice.rst59 :c:func:`PySlice_Unpack` and :c:func:`PySlice_AdjustIndices` where ::
70 slicelength = PySlice_AdjustIndices(length, &start, &stop, step);
80 :c:func:`!PySlice_Unpack` and :c:func:`!PySlice_AdjustIndices`.
102 .. c:function:: Py_ssize_t PySlice_AdjustIndices(Py_ssize_t length, Py_ssize_t *start, Py_ssize_t *…
/external/python/cpython3/Objects/
Dsliceobject.c241 PySlice_AdjustIndices(Py_ssize_t length, in PySlice_AdjustIndices() function
291 *slicelength = PySlice_AdjustIndices(length, start, stop, *step); in PySlice_GetIndicesEx()
Dbytearrayobject.c427 slicelength = PySlice_AdjustIndices(PyByteArray_GET_SIZE(self), in bytearray_subscript()
658 slicelen = PySlice_AdjustIndices(PyByteArray_GET_SIZE(self), &start, in bytearray_ass_subscript()
Dtupleobject.c741 slicelength = PySlice_AdjustIndices(PyTuple_GET_SIZE(self), &start, in tuplesubscript()
Dlistobject.c2733 slicelength = PySlice_AdjustIndices(Py_SIZE(self), &start, &stop, in list_subscript()
2783 slicelength = PySlice_AdjustIndices(Py_SIZE(self), &start, &stop, in list_ass_subscript()
Dmemoryobject.c2293 slicelength = PySlice_AdjustIndices(base->shape[dim], &start, &stop, step); in init_slice()
Dbytesobject.c1684 slicelength = PySlice_AdjustIndices(PyBytes_GET_SIZE(self), &start, in bytes_subscript()
Dunicodeobject.c13987 slicelength = PySlice_AdjustIndices(PyUnicode_GET_LENGTH(self), in unicode_subscript()
/external/python/cpython3/Modules/
Dmmapmodule.c784 slicelen = PySlice_AdjustIndices(self->size, &start, &stop, step); in mmap_subscript()
892 slicelen = PySlice_AdjustIndices(self->size, &start, &stop, step); in mmap_ass_subscript()
Darraymodule.c2354 slicelength = PySlice_AdjustIndices(Py_SIZE(self), &start, &stop, in array_subscr()
2426 slicelength = PySlice_AdjustIndices(Py_SIZE(self), &start, &stop, in array_ass_subscr()
D_testbuffer.c1719 slicelength = PySlice_AdjustIndices(base->shape[dim], &start, &stop, step); in init_slice()
1939 s[3] = PySlice_AdjustIndices(len, &s[0], &s[1], s[2]); in slice_indices()
D_elementtree.c1783 slicelen = PySlice_AdjustIndices(self->extra->length, &start, &stop, in element_subscr()
1839 slicelen = PySlice_AdjustIndices(self->extra->length, &start, &stop, in element_ass_subscr()
/external/python/cpython3/Doc/data/
Drefcounts.dat2038 PySlice_AdjustIndices:Py_ssize_t:::
2039 PySlice_AdjustIndices:Py_ssize_t:length::
2040 PySlice_AdjustIndices:Py_ssize_t*:start::
2041 PySlice_AdjustIndices:Py_ssize_t*:stop::
2042 PySlice_AdjustIndices:Py_ssize_t*:step::
/external/python/cpython3/PC/
Dpython3.def534 PySlice_AdjustIndices=python37.PySlice_AdjustIndices
/external/python/cpython3/Modules/_ctypes/
D_ctypes.c4378 slicelen = PySlice_AdjustIndices(self->b_length, &start, &stop, step); in Array_subscript()
4518 slicelen = PySlice_AdjustIndices(self->b_length, &start, &stop, step); in Array_ass_subscript()
/external/python/cpython2/Objects/
Dbytesobject.c1691 slicelength = PySlice_AdjustIndices(PyBytes_GET_SIZE(self), &start, in bytes_subscript()
/external/python/cpython3/Doc/whatsnew/
D3.7.rst1683 Added functions :c:func:`PySlice_Unpack` and :c:func:`PySlice_AdjustIndices`.
2446 :c:func:`PySlice_AdjustIndices`.
/external/python/cpython3/Misc/NEWS.d/
D3.7.0a1.rst6362 PySlice_Unpack() and PySlice_AdjustIndices().