Home
last modified time | relevance | path

Searched refs:PySliceObject (Results 1 – 13 of 13) sorted by relevance

/external/python/cpython2/Objects/
Dsliceobject.c63 PySliceObject *obj = PyObject_GC_New(PySliceObject, &PySlice_Type); in PySlice_New()
103 PySlice_GetIndices(PySliceObject *r, Py_ssize_t length, in PySlice_GetIndices()
137 PySliceObject *r = (PySliceObject *)_r; in _PySlice_Unpack()
223 PySlice_GetIndicesEx(PySliceObject *r, Py_ssize_t length, in PySlice_GetIndicesEx()
262 slice_dealloc(PySliceObject *r) in slice_dealloc()
272 slice_repr(PySliceObject *r) in slice_repr()
289 {"start", T_OBJECT, offsetof(PySliceObject, start), READONLY},
290 {"stop", T_OBJECT, offsetof(PySliceObject, stop), READONLY},
291 {"step", T_OBJECT, offsetof(PySliceObject, step), READONLY},
296 slice_indices(PySliceObject* self, PyObject* len) in slice_indices()
[all …]
/external/python/cpython3/Objects/
Dsliceobject.c101 static PySliceObject *slice_cache = NULL;
104 PySliceObject *obj = slice_cache; in PySlice_Fini()
118 PySliceObject *obj; in PySlice_New()
124 obj = PyObject_GC_New(PySliceObject, &PySlice_Type); in PySlice_New()
167 PySliceObject *r = (PySliceObject*)_r; in PySlice_GetIndices()
199 PySliceObject *r = (PySliceObject*)_r; in PySlice_Unpack()
324 slice_dealloc(PySliceObject *r) in slice_dealloc()
337 slice_repr(PySliceObject *r) in slice_repr()
343 {"start", T_OBJECT, offsetof(PySliceObject, start), READONLY},
344 {"stop", T_OBJECT, offsetof(PySliceObject, stop), READONLY},
[all …]
Drangeobject.c300 PySliceObject *slice = (PySliceObject *) _slice; in compute_slice()
/external/python/cpython2/Include/
Dsliceobject.h25 } PySliceObject; typedef
35 PyAPI_FUNC(int) PySlice_GetIndices(PySliceObject *r, Py_ssize_t length,
37 PyAPI_FUNC(int) PySlice_GetIndicesEx(PySliceObject *r, Py_ssize_t length,
/external/python/cpython3/Include/
Dsliceobject.h25 } PySliceObject; typedef
37 PyAPI_FUNC(int) _PySlice_GetLongIndices(PySliceObject *self, PyObject *length,
/external/python/cpython2/Doc/c-api/
Dslice.rst31 .. c:function:: int PySlice_GetIndices(PySliceObject *slice, Py_ssize_t length, Py_ssize_t *start, …
52 .. c:function:: int PySlice_GetIndicesEx(PySliceObject *slice, Py_ssize_t length, Py_ssize_t *start…
/external/python/cpython3/Doc/c-api/
Dslice.rst42 The parameter type for the *slice* parameter was ``PySliceObject*``
73 The parameter type for the *slice* parameter was ``PySliceObject*``
/external/protobuf/python/google/protobuf/pyext/
Drepeated_scalar_container.cc309 if (PySlice_GetIndicesEx(reinterpret_cast<PySliceObject*>(slice), in Subscript()
462 if (PySlice_GetIndicesEx(reinterpret_cast<PySliceObject*>(slice), in AssSubscript()
Drepeated_composite_container.cc269 if (PySlice_GetIndicesEx(reinterpret_cast<PySliceObject*>(slice), in AssignSubscript()
Dmessage.cc981 reinterpret_cast<PySliceObject*>(slice), in CheckAndGetInteger()
/external/python/cpython3/Modules/_ctypes/
D_ctypes.c5013 PySliceObject *slice = (PySliceObject *)item; in Pointer_subscript()
/external/python/cpython2/Modules/_ctypes/
D_ctypes.c5272 PySliceObject *slice = (PySliceObject *)item; in Pointer_subscript()
/external/python/cpython2/Modules/
D_testcapimodule.c1566 PySliceObject *slice; in get_indices()