/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 | 55 m = o->ob_type->tp_as_sequence; in PyObject_Size() 75 return (Py_TYPE(o)->tp_as_sequence && Py_TYPE(o)->tp_as_sequence->sq_length) || in _PyObject_HasLen() 159 ms = o->ob_type->tp_as_sequence; in PyObject_GetItem() 203 if (o->ob_type->tp_as_sequence) { in PyObject_SetItem() 211 else if (o->ob_type->tp_as_sequence->sq_ass_item) { in PyObject_SetItem() 235 if (o->ob_type->tp_as_sequence) { in PyObject_DelItem() 243 else if (o->ob_type->tp_as_sequence->sq_ass_item) { in PyObject_DelItem() 959 PySequenceMethods *m = v->ob_type->tp_as_sequence; in PyNumber_Add() 990 PySequenceMethods *mv = v->ob_type->tp_as_sequence; in PyNumber_Multiply() 991 PySequenceMethods *mw = w->ob_type->tp_as_sequence; in PyNumber_Multiply() [all …]
|
D | object.c | 1426 else if (v->ob_type->tp_as_sequence != NULL && in PyObject_IsTrue() 1427 v->ob_type->tp_as_sequence->sq_length != NULL) in PyObject_IsTrue() 1428 res = (*v->ob_type->tp_as_sequence->sq_length)(v); in PyObject_IsTrue()
|
D | typeobject.c | 2605 type->tp_as_sequence = &et->as_sequence; in type_new() 2911 type->tp_as_sequence = &res->as_sequence; in PyType_FromSpecWithBases() 4959 #define COPYSEQ(SLOT) COPYSLOT(tp_as_sequence->SLOT) in inherit_slots() 5016 if (type->tp_as_sequence != NULL && base->tp_as_sequence != NULL) { in inherit_slots() 5018 if (basebase->tp_as_sequence == NULL) in inherit_slots() 5295 if (type->tp_as_sequence == NULL) in PyType_Ready() 5296 type->tp_as_sequence = base->tp_as_sequence; in PyType_Ready() 5550 PySequenceMethods *sq = Py_TYPE(self)->tp_as_sequence; in getindex() 6993 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 | 279 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/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/python/cpython3/Include/ |
D | abstract.h | 925 ( Py_TYPE(o)->tp_as_sequence->sq_item(o, i) )
|
D | object.h | 364 PySequenceMethods *tp_as_sequence; member
|
/external/protobuf/python/google/protobuf/pyext/ |
D | repeated_scalar_container.cc | 504 if ((Py_TYPE(value)->tp_as_sequence == NULL) && PyObject_Not(value)) { in Extend()
|
/external/python/cpython3/Python/ |
D | context.c | 663 .tp_as_sequence = &PyContext_as_sequence,
|
D | hamt.c | 2916 .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 | 267 .. c:member:: PySequenceMethods* tp_as_sequence 273 The :c:member:`~PyTypeObject.tp_as_sequence` field is not inherited, but the contained fields 385 …:c:member:`~PyTypeObject.tp_as_number`, :c:member:`~PyTypeObject.tp_as_sequence`, :c:member:`~PyTy…
|
/external/python/cpython3/Doc/extending/ |
D | newtypes.rst | 432 PySequenceMethods *tp_as_sequence;
|
/external/python/cpython2/Doc/extending/ |
D | newtypes.rst | 93 0, /* tp_as_sequence */ 1372 PySequenceMethods *tp_as_sequence;
|