Searched refs:sq_length (Results 1 – 12 of 12) sorted by relevance
/external/python/cpython2/Objects/ |
D | abstract.c | 71 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 …]
|
D | object.c | 1588 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()
|
D | typeobject.c | 4006 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/ |
D | abstract.c | 59 if (m && m->sq_length) { in PyObject_Size() 60 Py_ssize_t len = m->sq_length(o); in PyObject_Size() 78 return (Py_TYPE(o)->tp_as_sequence && Py_TYPE(o)->tp_as_sequence->sq_length) || in _PyObject_HasLen() 1607 if (m && m->sq_length) { in PySequence_Size() 1608 Py_ssize_t len = m->sq_length(s); in PySequence_Size() 1751 if (m->sq_length) { in PySequence_GetItem() 1752 Py_ssize_t l = (*m->sq_length)(s); in PySequence_GetItem() 1805 if (m->sq_length) { in PySequence_SetItem() 1806 Py_ssize_t l = (*m->sq_length)(s); in PySequence_SetItem() 1838 if (m->sq_length) { in PySequence_DelItem() [all …]
|
D | typeslots.inc | 46 offsetof(PyHeapTypeObject, as_sequence.sq_length),
|
D | object.c | 1409 Py_TYPE(v)->tp_as_sequence->sq_length != NULL) in PyObject_IsTrue() 1410 res = (*Py_TYPE(v)->tp_as_sequence->sq_length)(v); in PyObject_IsTrue()
|
D | typeobject.c | 5255 COPYSEQ(sq_length); in inherit_slots() 5828 if (sq && sq->sq_length) { in getindex() 5829 Py_ssize_t n = (*sq->sq_length)(self); in getindex() 7279 SQSLOT("__len__", sq_length, slot_sq_length, wrap_lenfunc,
|
/external/python/cpython3/Include/cpython/ |
D | object.h | 159 lenfunc sq_length; member
|
/external/python/cpython2/Include/ |
D | object.h | 276 lenfunc sq_length; member
|
/external/python/cpython3/Doc/c-api/ |
D | type.rst | 227 * ``Py_sq_length`` to set :c:member:`PySequenceMethods.sq_length`
|
D | typeobj.rst | 299 …| :c:member:`~PySequenceMethods.sq_length` | :c:type:`lenfunc` | __… 2124 .. c:member:: lenfunc PySequenceMethods.sq_length 2151 Negative indexes are handled as follows: if the :attr:`sq_length` slot is 2153 index which is passed to :attr:`sq_item`. If :attr:`sq_length` is ``NULL``,
|
/external/python/cpython2/Doc/c-api/ |
D | typeobj.rst | 1277 .. 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*,
|