Searched refs:sq_length (Results 1 – 8 of 8) sorted by relevance
61 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 …]
46 {offsetof(PySequenceMethods, sq_length), offsetof(PyTypeObject, tp_as_sequence)},
1451 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()
5835 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,
152 lenfunc sq_length; member
244 * ``Py_sq_length`` to set :c:member:`PySequenceMethods.sq_length`
301 …| :c:member:`~PySequenceMethods.sq_length` | :c:type:`lenfunc` | __…2240 .. c:member:: lenfunc PySequenceMethods.sq_length2267 Negative indexes are handled as follows: if the :attr:`sq_length` slot is2269 index which is passed to :attr:`sq_item`. If :attr:`sq_length` is ``NULL``,
657 like ``sq_length`` (``__len__()`` in Python) now fails with a fatal error if