Home
last modified time | relevance | path

Searched refs:tp_as_mapping (Results 1 – 14 of 14) sorted by relevance

/third_party/python/Objects/
Dtypeslots.inc4 {offsetof(PyMappingMethods, mp_ass_subscript), offsetof(PyTypeObject, tp_as_mapping)},
5 {offsetof(PyMappingMethods, mp_length), offsetof(PyTypeObject, tp_as_mapping)},
6 {offsetof(PyMappingMethods, mp_subscript), offsetof(PyTypeObject, tp_as_mapping)},
Dabstract.c81 (Py_TYPE(o)->tp_as_mapping && Py_TYPE(o)->tp_as_mapping->mp_length); in _PyObject_HasLen()
156 PyMappingMethods *m = Py_TYPE(o)->tp_as_mapping; in PyObject_GetItem()
208 PyMappingMethods *m = Py_TYPE(o)->tp_as_mapping; in PyObject_SetItem()
242 PyMappingMethods *m = Py_TYPE(o)->tp_as_mapping; in PyObject_DelItem()
1744 if (Py_TYPE(s)->tp_as_mapping && Py_TYPE(s)->tp_as_mapping->mp_length) { in PySequence_Size()
1904 if (Py_TYPE(s)->tp_as_mapping && Py_TYPE(s)->tp_as_mapping->mp_subscript) { in PySequence_GetItem()
1917 PyMappingMethods *mp = Py_TYPE(s)->tp_as_mapping; in PySequence_GetSlice()
1957 if (Py_TYPE(s)->tp_as_mapping && Py_TYPE(s)->tp_as_mapping->mp_ass_subscript) { in PySequence_SetItem()
1990 if (Py_TYPE(s)->tp_as_mapping && Py_TYPE(s)->tp_as_mapping->mp_ass_subscript) { in PySequence_DelItem()
2006 PyMappingMethods *mp = Py_TYPE(s)->tp_as_mapping; in PySequence_SetSlice()
[all …]
Dobject.c1447 else if (Py_TYPE(v)->tp_as_mapping != NULL && in PyObject_IsTrue()
1448 Py_TYPE(v)->tp_as_mapping->mp_length != NULL) in PyObject_IsTrue()
1449 res = (*Py_TYPE(v)->tp_as_mapping->mp_length)(v); in PyObject_IsTrue()
Dunionobject.c464 .tp_as_mapping = &union_as_mapping,
Dtypeobject.c2757 type->tp_as_mapping = &et->as_mapping; in type_new_alloc()
3492 type->tp_as_mapping = &res->as_mapping; in PyType_FromModuleAndSpec()
5775 #define COPYMAP(SLOT) COPYSLOT(tp_as_mapping->SLOT) in inherit_slots()
5845 if (type->tp_as_mapping != NULL && base->tp_as_mapping != NULL) { in inherit_slots()
5847 if (basebase->tp_as_mapping == NULL) in inherit_slots()
6163 if (type->tp_as_mapping == NULL) { in type_ready_inherit_as_structs()
6164 type->tp_as_mapping = base->tp_as_mapping; in type_ready_inherit_as_structs()
8112 ptr = (char *)type->tp_as_mapping; in slotptr()
Dgenericaliasobject.c643 .tp_as_mapping = &ga_as_mapping,
Dbytesobject.c645 if (Py_TYPE(args)->tp_as_mapping && Py_TYPE(args)->tp_as_mapping->mp_subscript && in _PyBytes_FormatEx()
/third_party/python/Doc/includes/
Dtypestruct.h20 PyMappingMethods *tp_as_mapping; member
/third_party/python/Include/cpython/
Dobject.h210 PyMappingMethods *tp_as_mapping; member
/third_party/python/Python/
Dhamt.c2601 .tp_as_mapping = &PyHamtIterator_as_mapping, \
2897 .tp_as_mapping = &PyHamt_as_mapping,
Dcontext.c709 .tp_as_mapping = &PyContext_as_mapping,
/third_party/python/Doc/c-api/
Dtypeobj.rst68 …| :c:member:`~PyTypeObject.tp_as_mapping` | :c:type:`PyMappingMethods` * | :ref:`sub-s…
855 .. c:member:: PyMappingMethods* PyTypeObject.tp_as_mapping
863 The :c:member:`~PyTypeObject.tp_as_mapping` field is not inherited, but the contained fields
1009 …_as_number`, :c:member:`~PyTypeObject.tp_as_sequence`, :c:member:`~PyTypeObject.tp_as_mapping`, and
2620 0, /* tp_as_mapping */
/third_party/protobuf/python/google/protobuf/pyext/
Ddescriptor_containers.cc630 return Py_TYPE(list.get())->tp_as_mapping->mp_subscript(list.get(), item); in SeqSubscript()
/third_party/python/Doc/extending/
Dnewtypes.rst452 PyMappingMethods *tp_as_mapping;