Home
last modified time | relevance | path

Searched refs:sq_length (Results 1 – 12 of 12) sorted by relevance

/external/python/cpython2/Objects/
Dabstract.c71 if (m && m->sq_length) in PyObject_Size()
72 return m->sq_length(o); in PyObject_Size()
1864 if (m && m->sq_length)
1865 return m->sq_length(s);
1996 if (m->sq_length) {
1997 Py_ssize_t l = (*m->sq_length)(s);
2020 if (m->sq_length) {
2021 Py_ssize_t l = (*m->sq_length)(s);
2057 if (m->sq_length) {
2058 Py_ssize_t l = (*m->sq_length)(s);
[all …]
Dobject.c1588 v->ob_type->tp_as_sequence->sq_length != NULL) in PyObject_IsTrue()
1589 res = (*v->ob_type->tp_as_sequence->sq_length)(v); in PyObject_IsTrue()
Dtypeobject.c4006 COPYSEQ(sq_length);
4555 if (sq && sq->sq_length) {
4556 Py_ssize_t n = (*sq->sq_length)(self);
6189 SQSLOT("__len__", sq_length, slot_sq_length, wrap_lenfunc,
/external/python/cpython3/Objects/
Dabstract.c56 if (m && m->sq_length) { in PyObject_Size()
57 Py_ssize_t len = m->sq_length(o); in PyObject_Size()
75 return (Py_TYPE(o)->tp_as_sequence && Py_TYPE(o)->tp_as_sequence->sq_length) || in _PyObject_HasLen()
1551 if (m && m->sq_length) { in PySequence_Size()
1552 Py_ssize_t len = m->sq_length(s); in PySequence_Size()
1695 if (m->sq_length) { in PySequence_GetItem()
1696 Py_ssize_t l = (*m->sq_length)(s); in PySequence_GetItem()
1749 if (m->sq_length) { in PySequence_SetItem()
1750 Py_ssize_t l = (*m->sq_length)(s); in PySequence_SetItem()
1782 if (m->sq_length) { in PySequence_DelItem()
[all …]
Dtypeslots.inc46 offsetof(PyHeapTypeObject, as_sequence.sq_length),
Dobject.c1461 v->ob_type->tp_as_sequence->sq_length != NULL) in PyObject_IsTrue()
1462 res = (*v->ob_type->tp_as_sequence->sq_length)(v); in PyObject_IsTrue()
Dtypeobject.c5117 COPYSEQ(sq_length); in inherit_slots()
5689 if (sq && sq->sq_length) { in getindex()
5690 Py_ssize_t n = (*sq->sq_length)(self); in getindex()
7089 SQSLOT("__len__", sq_length, slot_sq_length, wrap_lenfunc,
/external/python/cpython3/Include/cpython/
Dobject.h143 lenfunc sq_length; member
/external/python/cpython3/Doc/c-api/
Dtype.rst182 * ``Py_sq_length`` to set :c:member:`PySequenceMethods.sq_length`
Dtypeobj.rst306 …| :c:member:`~PySequenceMethods.sq_length` | :c:type:`lenfunc` | __…
2134 .. c:member:: lenfunc PySequenceMethods.sq_length
2161 Negative indexes are handled as follows: if the :attr:`sq_length` slot is
2163 index which is passed to :attr:`sq_item`. If :attr:`sq_length` is ``NULL``,
/external/python/cpython2/Include/
Dobject.h276 lenfunc sq_length; member
/external/python/cpython2/Doc/c-api/
Dtypeobj.rst1277 .. c:member:: lenfunc PySequenceMethods.sq_length
1301 Negative indexes are handled as follows: if the :attr:`sq_length` slot is
1303 index which is passed to :attr:`sq_item`. If :attr:`sq_length` is *NULL*,