Home
last modified time | relevance | path

Searched refs:tp_as_mapping (Results 1 - 12 of 12) sorted by relevance

/third_party/python/Objects/
H A Dabstract.c81 (Py_TYPE(o)->tp_as_mapping && Py_TYPE(o)->tp_as_mapping->mp_length); in _PyObject_HasLen()
155 PyMappingMethods *m = Py_TYPE(o)->tp_as_mapping; in PyObject_GetItem()
210 PyMappingMethods *m = Py_TYPE(o)->tp_as_mapping; in PyObject_SetItem()
244 PyMappingMethods *m = Py_TYPE(o)->tp_as_mapping; in PyObject_DelItem()
1737 if (Py_TYPE(s)->tp_as_mapping && Py_TYPE(s)->tp_as_mapping->mp_length) { in PySequence_Size()
1897 if (Py_TYPE(s)->tp_as_mapping && Py_TYPE(s)->tp_as_mapping->mp_subscript) { in PySequence_GetItem()
1910 PyMappingMethods *mp = Py_TYPE(s)->tp_as_mapping; in PySequence_GetSlice()
[all...]
H A Dunionobject.c387 .tp_as_mapping = &union_as_mapping,
H A Dobject.c1509 else if (Py_TYPE(v)->tp_as_mapping != NULL && in PyObject_IsTrue()
1510 Py_TYPE(v)->tp_as_mapping->mp_length != NULL) in PyObject_IsTrue()
1511 res = (*Py_TYPE(v)->tp_as_mapping->mp_length)(v); in PyObject_IsTrue()
1699 0, /*tp_as_mapping*/
1800 0, /*tp_as_mapping*/
H A Dtypeobject.c2769 type->tp_as_mapping = &et->as_mapping; in type_new_alloc()
3516 type->tp_as_mapping = &res->as_mapping; in PyType_FromModuleAndSpec()
4408 0, /* tp_as_mapping */
5622 0, /* tp_as_mapping */
5871 #define COPYMAP(SLOT) COPYSLOT(tp_as_mapping->SLOT) in inherit_slots()
5941 if (type->tp_as_mapping != NULL && base->tp_as_mapping != NULL) { in inherit_slots()
5943 if (basebase->tp_as_mapping == NULL) in inherit_slots()
6259 if (type->tp_as_mapping == NULL) { in type_ready_inherit_as_structs()
6260 type->tp_as_mapping in type_ready_inherit_as_structs()
[all...]
H A Dgenericaliasobject.c943 .tp_as_mapping = &ga_as_mapping,
H A Dbytesobject.c615 if (Py_TYPE(args)->tp_as_mapping && Py_TYPE(args)->tp_as_mapping->mp_subscript && in _PyBytes_FormatEx()
2950 &bytes_as_mapping, /* tp_as_mapping */
3247 0, /* tp_as_mapping */
/third_party/python/Doc/includes/
H A Dtypestruct.h20 PyMappingMethods *tp_as_mapping; member
/third_party/python/Include/cpython/
H A Dobject.h167 PyMappingMethods *tp_as_mapping; member
/third_party/python/Python/
H A Dcontext.c717 .tp_as_mapping = &PyContext_as_mapping,
H A Dhamt.c2610 .tp_as_mapping = &PyHamtIterator_as_mapping, \
2906 .tp_as_mapping = &PyHamt_as_mapping,
H A Dspecialize.c1296 PyMappingMethods *as_mapping = container_type->tp_as_mapping; in _Py_Specialize_StoreSubscr()
1298 == PyDict_Type.tp_as_mapping->mp_ass_subscript)) { in _Py_Specialize_StoreSubscr()
/third_party/protobuf/python/google/protobuf/pyext/
H A Ddescriptor_containers.cc573 &MappingMappingMethods, // tp_as_mapping
630 return Py_TYPE(list.get())->tp_as_mapping->mp_subscript(list.get(), item); in SeqSubscript()
758 &SeqMappingMethods, // tp_as_mapping
901 0, // tp_as_mapping

Completed in 32 milliseconds