/external/python/cpython2/Objects/ |
D | abstract.c | 70 m = o->ob_type->tp_as_sequence; in PyObject_Size() 146 if (o->ob_type->tp_as_sequence) { in PyObject_GetItem() 154 else if (o->ob_type->tp_as_sequence->sq_item) in PyObject_GetItem() 175 if (o->ob_type->tp_as_sequence) { in PyObject_SetItem() 183 else if (o->ob_type->tp_as_sequence->sq_ass_item) { in PyObject_SetItem() 207 if (o->ob_type->tp_as_sequence) { in PyObject_DelItem() 215 else if (o->ob_type->tp_as_sequence->sq_ass_item) { in PyObject_DelItem() 1187 PySequenceMethods *m = v->ob_type->tp_as_sequence; 1218 PySequenceMethods *mv = v->ob_type->tp_as_sequence; 1219 PySequenceMethods *mw = w->ob_type->tp_as_sequence; [all …]
|
D | typeobject.c | 2369 type->tp_as_sequence = &et->as_sequence; in type_new() 3821 if (!type->tp_as_sequence && base->tp_as_sequence) { 3828 (!type->tp_as_sequence && base->tp_as_sequence)) { 3830 if (!type->tp_as_number && !type->tp_as_sequence) { 3946 #define COPYSEQ(SLOT) COPYSLOT(tp_as_sequence->SLOT) 4002 if (type->tp_as_sequence != NULL && base->tp_as_sequence != NULL) { 4004 if (basebase->tp_as_sequence == NULL) 4287 if (type->tp_as_sequence == NULL) 4288 type->tp_as_sequence = base->tp_as_sequence; 4554 PySequenceMethods *sq = Py_TYPE(self)->tp_as_sequence; [all …]
|
D | object.c | 1587 else if (v->ob_type->tp_as_sequence != NULL && in PyObject_IsTrue() 1588 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()
|
/external/python/cpython3/Objects/ |
D | abstract.c | 58 m = Py_TYPE(o)->tp_as_sequence; in PyObject_Size() 78 return (Py_TYPE(o)->tp_as_sequence && Py_TYPE(o)->tp_as_sequence->sq_length) || in _PyObject_HasLen() 162 ms = Py_TYPE(o)->tp_as_sequence; in PyObject_GetItem() 212 if (Py_TYPE(o)->tp_as_sequence) { in PyObject_SetItem() 220 else if (Py_TYPE(o)->tp_as_sequence->sq_ass_item) { in PyObject_SetItem() 244 if (Py_TYPE(o)->tp_as_sequence) { in PyObject_DelItem() 252 else if (Py_TYPE(o)->tp_as_sequence->sq_ass_item) { in PyObject_DelItem() 1020 PySequenceMethods *m = Py_TYPE(v)->tp_as_sequence; in PyNumber_Add() 1051 PySequenceMethods *mv = Py_TYPE(v)->tp_as_sequence; in PyNumber_Multiply() 1052 PySequenceMethods *mw = Py_TYPE(w)->tp_as_sequence; in PyNumber_Multiply() [all …]
|
D | object.c | 1408 else if (Py_TYPE(v)->tp_as_sequence != NULL && in PyObject_IsTrue() 1409 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()
|
D | typeobject.c | 2616 type->tp_as_sequence = &et->as_sequence; in type_new() 2994 type->tp_as_sequence = &res->as_sequence; in PyType_FromModuleAndSpec() 5194 #define COPYSEQ(SLOT) COPYSLOT(tp_as_sequence->SLOT) in inherit_slots() 5251 if (type->tp_as_sequence != NULL && base->tp_as_sequence != NULL) { in inherit_slots() 5253 if (basebase->tp_as_sequence == NULL) in inherit_slots() 5572 if (type->tp_as_sequence == NULL) in PyType_Ready() 5573 type->tp_as_sequence = base->tp_as_sequence; in PyType_Ready() 5827 PySequenceMethods *sq = Py_TYPE(self)->tp_as_sequence; in getindex() 7325 ptr = (char *)type->tp_as_sequence; in slotptr()
|
/external/python/cpython2/Doc/includes/ |
D | typestruct.h | 18 PySequenceMethods *tp_as_sequence; member
|
/external/python/cpython3/Doc/includes/ |
D | typestruct.h | 19 PySequenceMethods *tp_as_sequence; member
|
/external/python/cpython3/Modules/_sqlite/ |
D | row.c | 276 pysqlite_RowType.tp_as_sequence = &pysqlite_row_as_sequence; in pysqlite_row_setup_types()
|
/external/python/cpython2/Modules/_sqlite/ |
D | row.c | 282 pysqlite_RowType.tp_as_sequence = &pysqlite_row_as_sequence; in pysqlite_row_setup_types()
|
/external/python/cpython3/Include/cpython/ |
D | abstract.h | 343 ( Py_TYPE(o)->tp_as_sequence->sq_item(o, i) )
|
D | object.h | 211 PySequenceMethods *tp_as_sequence; member
|
/external/python/cpython2/Python/ |
D | bltinmodule.c | 2789 if (tuple->ob_type->tp_as_sequence && in filtertuple() 2790 tuple->ob_type->tp_as_sequence->sq_item) { in filtertuple() 2791 item = tuple->ob_type->tp_as_sequence->sq_item(tuple, i); in filtertuple() 2866 item = (*strobj->ob_type->tp_as_sequence->sq_item)(strobj, i); in filterstring() 2995 item = (*strobj->ob_type->tp_as_sequence->sq_item)(strobj, i); in filterunicode()
|
D | ceval.c | 4759 PySequenceMethods *sq = tp->tp_as_sequence; in apply_slice() 4786 PySequenceMethods *sq = tp->tp_as_sequence; in assign_slice()
|
/external/python/cpython2/Modules/ |
D | stropmodule.c | 245 if (seq->ob_type->tp_as_sequence == NULL || in strop_joinfields() 246 (getitemfunc = seq->ob_type->tp_as_sequence->sq_item) == NULL) in strop_joinfields()
|
/external/python/cpython2/Include/ |
D | abstract.h | 1175 ( Py_TYPE(o)->tp_as_sequence->sq_item(o, i) )
|
D | object.h | 341 PySequenceMethods *tp_as_sequence; member
|
/external/protobuf/python/google/protobuf/pyext/ |
D | repeated_scalar_container.cc | 498 if ((Py_TYPE(value)->tp_as_sequence == NULL) && PyObject_Not(value)) { in Subscript()
|
/external/python/pybind11/include/pybind11/detail/ |
D | class.h | 667 type->tp_as_sequence = &heap_type->as_sequence; in make_new_python_type()
|
/external/python/cpython3/Python/ |
D | context.c | 694 .tp_as_sequence = &PyContext_as_sequence,
|
D | hamt.c | 2917 .tp_as_sequence = &PyHamt_as_sequence,
|
/external/python/cpython2/Doc/c-api/ |
D | typeobj.rst | 303 .. c:member:: PySequenceMethods* tp_as_sequence 309 The :c:member:`~PyTypeObject.tp_as_sequence` field is not inherited, but the contained fields 422 …:c:member:`~PyTypeObject.tp_as_number`, :c:member:`~PyTypeObject.tp_as_sequence`, :c:member:`~PyTy… 454 :c:member:`~PyTypeObject.tp_as_sequence` has the :attr:`sq_contains` field. 466 … :c:member:`~PyTypeObject.tp_as_sequence` and the :c:type:`PyNumberMethods` structure referenced by
|
/external/python/cpython3/Doc/c-api/ |
D | typeobj.rst | 66 …| :c:member:`~PyTypeObject.tp_as_sequence` | :c:type:`PySequenceMethods` * | :ref:`sub-s… 820 .. c:member:: PySequenceMethods* PyTypeObject.tp_as_sequence 828 The :c:member:`~PyTypeObject.tp_as_sequence` field is not inherited, but the contained fields 986 …:c:member:`~PyTypeObject.tp_as_number`, :c:member:`~PyTypeObject.tp_as_sequence`, :c:member:`~PyTy… 2487 0, /* tp_as_sequence */
|
/external/python/cpython3/Doc/extending/ |
D | newtypes.rst | 434 PySequenceMethods *tp_as_sequence;
|
/external/python/cpython2/Doc/extending/ |
D | newtypes.rst | 93 0, /* tp_as_sequence */ 1372 PySequenceMethods *tp_as_sequence;
|