Searched refs:tp_as_sequence (Results 1 – 12 of 12) sorted by relevance
/third_party/python/Objects/ |
D | typeslots.inc | 40 {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)},
|
D | abstract.c | 60 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 …]
|
D | object.c | 1450 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()
|
D | typeobject.c | 2756 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/ |
D | typestruct.h | 19 PySequenceMethods *tp_as_sequence; member
|
/third_party/python/Include/cpython/ |
D | abstract.h | 333 ( Py_TYPE(o)->tp_as_sequence->sq_item(o, i) )
|
D | object.h | 209 PySequenceMethods *tp_as_sequence; member
|
/third_party/protobuf/python/google/protobuf/pyext/ |
D | repeated_scalar_container.cc | 498 if ((Py_TYPE(value)->tp_as_sequence == NULL) && PyObject_Not(value)) { in Subscript()
|
/third_party/python/Python/ |
D | context.c | 710 .tp_as_sequence = &PyContext_as_sequence,
|
D | hamt.c | 2898 .tp_as_sequence = &PyHamt_as_sequence,
|
/third_party/python/Doc/c-api/ |
D | typeobj.rst | 66 …| :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/ |
D | newtypes.rst | 451 PySequenceMethods *tp_as_sequence;
|