Home
last modified time | relevance | path

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

/third_party/python/Objects/
Dtypeslots.inc40 {offsetof(PySequenceMethods, sq_ass_item), offsetof(PyTypeObject, tp_as_sequence)},
41 {offsetof(PySequenceMethods, sq_concat), offsetof(PyTypeObject, tp_as_sequence)},
42 {offsetof(PySequenceMethods, sq_contains), offsetof(PyTypeObject, tp_as_sequence)},
43 {offsetof(PySequenceMethods, sq_inplace_concat), offsetof(PyTypeObject, tp_as_sequence)},
44 {offsetof(PySequenceMethods, sq_inplace_repeat), offsetof(PyTypeObject, tp_as_sequence)},
45 {offsetof(PySequenceMethods, sq_item), offsetof(PyTypeObject, tp_as_sequence)},
46 {offsetof(PySequenceMethods, sq_length), offsetof(PyTypeObject, tp_as_sequence)},
47 {offsetof(PySequenceMethods, sq_repeat), offsetof(PyTypeObject, tp_as_sequence)},
Dabstract.c60 PySequenceMethods *m = Py_TYPE(o)->tp_as_sequence; in PyObject_Size()
80 return (Py_TYPE(o)->tp_as_sequence && Py_TYPE(o)->tp_as_sequence->sq_length) || in _PyObject_HasLen()
163 PySequenceMethods *ms = Py_TYPE(o)->tp_as_sequence; in PyObject_GetItem()
215 if (Py_TYPE(o)->tp_as_sequence) { in PyObject_SetItem()
223 else if (Py_TYPE(o)->tp_as_sequence->sq_ass_item) { in PyObject_SetItem()
249 if (Py_TYPE(o)->tp_as_sequence) { in PyObject_DelItem()
257 else if (Py_TYPE(o)->tp_as_sequence->sq_ass_item) { in PyObject_DelItem()
1077 PySequenceMethods *m = Py_TYPE(v)->tp_as_sequence; in PyNumber_Add()
1111 PySequenceMethods *mv = Py_TYPE(v)->tp_as_sequence; in PyNumber_Multiply()
1112 PySequenceMethods *mw = Py_TYPE(w)->tp_as_sequence; in PyNumber_Multiply()
[all …]
Dobject.c1450 else if (Py_TYPE(v)->tp_as_sequence != NULL && in PyObject_IsTrue()
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()
Dtypeobject.c2756 type->tp_as_sequence = &et->as_sequence; in type_new_alloc()
3491 type->tp_as_sequence = &res->as_sequence; in PyType_FromModuleAndSpec()
5774 #define COPYSEQ(SLOT) COPYSLOT(tp_as_sequence->SLOT) in inherit_slots()
5831 if (type->tp_as_sequence != NULL && base->tp_as_sequence != NULL) { in inherit_slots()
5833 if (basebase->tp_as_sequence == NULL) in inherit_slots()
6160 if (type->tp_as_sequence == NULL) { in type_ready_inherit_as_structs()
6161 type->tp_as_sequence = base->tp_as_sequence; in type_ready_inherit_as_structs()
6610 PySequenceMethods *sq = Py_TYPE(self)->tp_as_sequence; in getindex()
8108 ptr = (char *)type->tp_as_sequence; in slotptr()
/third_party/python/Doc/includes/
Dtypestruct.h19 PySequenceMethods *tp_as_sequence; member
/third_party/python/Include/cpython/
Dabstract.h333 ( Py_TYPE(o)->tp_as_sequence->sq_item(o, i) )
Dobject.h209 PySequenceMethods *tp_as_sequence; member
/third_party/protobuf/python/google/protobuf/pyext/
Drepeated_scalar_container.cc498 if ((Py_TYPE(value)->tp_as_sequence == NULL) && PyObject_Not(value)) { in Subscript()
/third_party/python/Python/
Dcontext.c710 .tp_as_sequence = &PyContext_as_sequence,
Dhamt.c2898 .tp_as_sequence = &PyHamt_as_sequence,
/third_party/python/Doc/c-api/
Dtypeobj.rst66 …| :c:member:`~PyTypeObject.tp_as_sequence` | :c:type:`PySequenceMethods` * | :ref:`sub-s…
843 .. c:member:: PySequenceMethods* PyTypeObject.tp_as_sequence
851 The :c:member:`~PyTypeObject.tp_as_sequence` field is not inherited, but the contained fields
1009 …:c:member:`~PyTypeObject.tp_as_number`, :c:member:`~PyTypeObject.tp_as_sequence`, :c:member:`~PyTy…
2619 0, /* tp_as_sequence */
/third_party/python/Doc/extending/
Dnewtypes.rst451 PySequenceMethods *tp_as_sequence;