Home
last modified time | relevance | path

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

/third_party/python/Objects/
Dabstract.c61 if (m && m->sq_length) { in PyObject_Size()
62 Py_ssize_t len = m->sq_length(o); in PyObject_Size()
80 return (Py_TYPE(o)->tp_as_sequence && Py_TYPE(o)->tp_as_sequence->sq_length) || in _PyObject_HasLen()
1738 if (m && m->sq_length) { in PySequence_Size()
1739 Py_ssize_t len = m->sq_length(s); in PySequence_Size()
1890 if (m->sq_length) { in PySequence_GetItem()
1891 Py_ssize_t l = (*m->sq_length)(s); in PySequence_GetItem()
1943 if (m->sq_length) { in PySequence_SetItem()
1944 Py_ssize_t l = (*m->sq_length)(s); in PySequence_SetItem()
1976 if (m->sq_length) { in PySequence_DelItem()
[all …]
Dtypeslots.inc46 {offsetof(PySequenceMethods, sq_length), offsetof(PyTypeObject, tp_as_sequence)},
Dobject.c1451 Py_TYPE(v)->tp_as_sequence->sq_length != NULL) in PyObject_IsTrue()
1452 res = (*Py_TYPE(v)->tp_as_sequence->sq_length)(v); in PyObject_IsTrue()
Dtypeobject.c5835 COPYSEQ(sq_length); in inherit_slots()
6611 if (sq && sq->sq_length) { in getindex()
6612 Py_ssize_t n = (*sq->sq_length)(self); in getindex()
8062 SQSLOT("__len__", sq_length, slot_sq_length, wrap_lenfunc,
/third_party/python/Include/cpython/
Dobject.h152 lenfunc sq_length; member
/third_party/python/Doc/c-api/
Dtype.rst244 * ``Py_sq_length`` to set :c:member:`PySequenceMethods.sq_length`
Dtypeobj.rst301 …| :c:member:`~PySequenceMethods.sq_length` | :c:type:`lenfunc` | __…
2240 .. c:member:: lenfunc PySequenceMethods.sq_length
2267 Negative indexes are handled as follows: if the :attr:`sq_length` slot is
2269 index which is passed to :attr:`sq_item`. If :attr:`sq_length` is ``NULL``,
/third_party/python/Misc/NEWS.d/
D3.10.0a5.rst657 like ``sq_length`` (``__len__()`` in Python) now fails with a fatal error if