Home
last modified time | relevance | path

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

/external/python/cpython3/Objects/
Dtypeslots.inc40 {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)},
Dabstract.c61 PySequenceMethods *m = Py_TYPE(o)->tp_as_sequence; in PyObject_Size()
81 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()
237 if (Py_TYPE(o)->tp_as_sequence) { in PyObject_SetItem()
245 else if (Py_TYPE(o)->tp_as_sequence->sq_ass_item) { in PyObject_SetItem()
271 if (Py_TYPE(o)->tp_as_sequence) { in PyObject_DelItem()
279 else if (Py_TYPE(o)->tp_as_sequence->sq_ass_item) { in PyObject_DelItem()
1147 PySequenceMethods *m = Py_TYPE(v)->tp_as_sequence; in PyNumber_Add()
1181 PySequenceMethods *mv = Py_TYPE(v)->tp_as_sequence; in PyNumber_Multiply()
1182 PySequenceMethods *mw = Py_TYPE(w)->tp_as_sequence; in PyNumber_Multiply()
[all …]
Dobject.c1875 else if (Py_TYPE(v)->tp_as_sequence != NULL && in PyObject_IsTrue()
1876 Py_TYPE(v)->tp_as_sequence->sq_length != NULL) in PyObject_IsTrue()
1877 res = (*Py_TYPE(v)->tp_as_sequence->sq_length)(v); in PyObject_IsTrue()
Dtypeobject.c3704 type->tp_as_sequence = &et->as_sequence; in type_new_alloc()
4695 type->tp_as_sequence = &res->as_sequence; in _PyType_FromMetaclass_impl()
7508 #define COPYSEQ(SLOT) COPYSLOT(tp_as_sequence->SLOT) in inherit_slots()
7565 if (type->tp_as_sequence != NULL && base->tp_as_sequence != NULL) { in inherit_slots()
7567 if (basebase->tp_as_sequence == NULL) in inherit_slots()
7954 if (type->tp_as_sequence == NULL) { in type_ready_inherit_as_structs()
7955 type->tp_as_sequence = base->tp_as_sequence; in type_ready_inherit_as_structs()
8595 PySequenceMethods *sq = Py_TYPE(self)->tp_as_sequence; in getindex()
10412 ptr = (char *)type->tp_as_sequence; in slotptr()
Dframeobject.c820 .tp_as_sequence = &framelocalsproxy_as_sequence,
/external/python/cpython3/Doc/includes/
Dtypestruct.h19 PySequenceMethods *tp_as_sequence; member
/external/python/cpython3/Include/cpython/
Dabstract.h87 ( Py_TYPE(o)->tp_as_sequence->sq_item((o), (i)) )
Dobject.h165 PySequenceMethods *tp_as_sequence; member
/external/pytorch/torch/csrc/
DSize.cpp169 auto sq_concat = PyTuple_Type.tp_as_sequence->sq_concat;
170 auto sq_repeat = PyTuple_Type.tp_as_sequence->sq_repeat;
/external/python/cpython3/Modules/
D_bisectmodule.c37 PySequenceMethods *m = tp->tp_as_sequence; in get_sq_item()
/external/tensorflow/tensorflow/compiler/xla/python/
Dsharded_device_array.cc208 type->tp_as_sequence = &heap_type->as_sequence; in RegisterTypes()
Dpy_buffer.cc538 type->tp_as_sequence = &heap_type->as_sequence; in RegisterTypes()
/external/cronet/tot/third_party/protobuf/python/google/protobuf/pyext/
Drepeated_scalar_container.cc472 if ((Py_TYPE(value)->tp_as_sequence == nullptr) && PyObject_Not(value)) { in Extend()
/external/cronet/stable/third_party/protobuf/python/google/protobuf/pyext/
Drepeated_scalar_container.cc472 if ((Py_TYPE(value)->tp_as_sequence == nullptr) && PyObject_Not(value)) { in Extend()
/external/protobuf/python/google/protobuf/pyext/
Drepeated_scalar_container.cc472 if ((Py_TYPE(value)->tp_as_sequence == nullptr) && PyObject_Not(value)) { in Extend()
/external/python/cpython3/Python/
Dspecialize.c1460 else if (container_type->tp_as_sequence) { in binary_subscr_fail_kind()
1461 if (PyLong_CheckExact(sub) && container_type->tp_as_sequence->sq_item) { in binary_subscr_fail_kind()
2449 PySequenceMethods *sq = Py_TYPE(value)->tp_as_sequence; in _Py_Specialize_ToBool()
Dcontext.c710 .tp_as_sequence = &PyContext_as_sequence,
Doptimizer.c432 .tp_as_sequence = &uop_as_sequence,
Dhamt.c2841 .tp_as_sequence = &PyHamt_as_sequence,
/external/python/cpython3/Doc/c-api/
Dtypeobj.rst66 …| :c:member:`~PyTypeObject.tp_as_sequence` | :c:type:`PySequenceMethods` * | :ref:`sub-s…
839 .. c:member:: PySequenceMethods* PyTypeObject.tp_as_sequence
847 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…
2746 0, /* tp_as_sequence */
/external/python/cpython3/Doc/extending/
Dnewtypes.rst426 PySequenceMethods *tp_as_sequence;
/external/pytorch/functorch/csrc/dim/
Ddim.cpp1010 …bool is_element = !typ->tp_as_sequence || typ == torch_Tensor || typ == TensorType || typ == DimT… in tree_flatten()
/external/python/cpython3/Doc/data/
Dpython3.13.abi14662 …<var-decl name='tp_as_sequence' type-id='type-id-994' visibility='default' filepath='./Include/cpy…