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.c59 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 …]
Dtypeslots.inc46 offsetof(PyHeapTypeObject, as_sequence.sq_length),
Dobject.c1409 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()
Dtypeobject.c5255 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/
Dobject.h159 lenfunc sq_length; member
/external/python/cpython2/Include/
Dobject.h276 lenfunc sq_length; member
/external/python/cpython3/Doc/c-api/
Dtype.rst227 * ``Py_sq_length`` to set :c:member:`PySequenceMethods.sq_length`
Dtypeobj.rst299 …| :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/
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*,