Home
last modified time | relevance | path

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

/external/python/cpython2/Objects/
Dabstract.c70 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 …]
Dtypeobject.c2369 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 …]
Dobject.c1587 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/
Dabstract.c55 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 …]
Dobject.c1426 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()
Dtypeobject.c2605 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/
Dtypestruct.h18 PySequenceMethods *tp_as_sequence; member
/external/python/cpython3/Doc/includes/
Dtypestruct.h19 PySequenceMethods *tp_as_sequence; member
/external/python/cpython3/Modules/_sqlite/
Drow.c279 pysqlite_RowType.tp_as_sequence = &pysqlite_row_as_sequence; in pysqlite_row_setup_types()
/external/python/cpython2/Modules/_sqlite/
Drow.c282 pysqlite_RowType.tp_as_sequence = &pysqlite_row_as_sequence; in pysqlite_row_setup_types()
/external/python/cpython2/Python/
Dbltinmodule.c2789 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()
Dceval.c4759 PySequenceMethods *sq = tp->tp_as_sequence; in apply_slice()
4786 PySequenceMethods *sq = tp->tp_as_sequence; in assign_slice()
/external/python/cpython2/Modules/
Dstropmodule.c245 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/
Dabstract.h1175 ( Py_TYPE(o)->tp_as_sequence->sq_item(o, i) )
Dobject.h341 PySequenceMethods *tp_as_sequence; member
/external/python/cpython3/Include/
Dabstract.h925 ( Py_TYPE(o)->tp_as_sequence->sq_item(o, i) )
Dobject.h364 PySequenceMethods *tp_as_sequence; member
/external/protobuf/python/google/protobuf/pyext/
Drepeated_scalar_container.cc504 if ((Py_TYPE(value)->tp_as_sequence == NULL) && PyObject_Not(value)) { in Extend()
/external/python/cpython3/Python/
Dcontext.c663 .tp_as_sequence = &PyContext_as_sequence,
Dhamt.c2916 .tp_as_sequence = &PyHamt_as_sequence,
/external/python/cpython2/Doc/c-api/
Dtypeobj.rst303 .. 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/
Dtypeobj.rst267 .. 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/
Dnewtypes.rst432 PySequenceMethods *tp_as_sequence;
/external/python/cpython2/Doc/extending/
Dnewtypes.rst93 0, /* tp_as_sequence */
1372 PySequenceMethods *tp_as_sequence;