Home
last modified time | relevance | path

Searched refs:tp_as_sequence (Results 1 – 25 of 25) 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.c58 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 …]
Dobject.c1408 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()
Dtypeobject.c2616 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/
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.c276 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/cpython3/Include/cpython/
Dabstract.h343 ( Py_TYPE(o)->tp_as_sequence->sq_item(o, i) )
Dobject.h211 PySequenceMethods *tp_as_sequence; member
/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/protobuf/python/google/protobuf/pyext/
Drepeated_scalar_container.cc498 if ((Py_TYPE(value)->tp_as_sequence == NULL) && PyObject_Not(value)) { in Subscript()
/external/python/pybind11/include/pybind11/detail/
Dclass.h667 type->tp_as_sequence = &heap_type->as_sequence; in make_new_python_type()
/external/python/cpython3/Python/
Dcontext.c694 .tp_as_sequence = &PyContext_as_sequence,
Dhamt.c2917 .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.rst66 …| :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/
Dnewtypes.rst434 PySequenceMethods *tp_as_sequence;
/external/python/cpython2/Doc/extending/
Dnewtypes.rst93 0, /* tp_as_sequence */
1372 PySequenceMethods *tp_as_sequence;