Searched refs:tp_as_mapping (Results 1 – 14 of 14) sorted by relevance
/third_party/python/Objects/ |
D | typeslots.inc | 4 {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)},
|
D | abstract.c | 81 (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 …]
|
D | object.c | 1447 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()
|
D | unionobject.c | 464 .tp_as_mapping = &union_as_mapping,
|
D | typeobject.c | 2757 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()
|
D | genericaliasobject.c | 643 .tp_as_mapping = &ga_as_mapping,
|
D | bytesobject.c | 645 if (Py_TYPE(args)->tp_as_mapping && Py_TYPE(args)->tp_as_mapping->mp_subscript && in _PyBytes_FormatEx()
|
/third_party/python/Doc/includes/ |
D | typestruct.h | 20 PyMappingMethods *tp_as_mapping; member
|
/third_party/python/Include/cpython/ |
D | object.h | 210 PyMappingMethods *tp_as_mapping; member
|
/third_party/python/Python/ |
D | hamt.c | 2601 .tp_as_mapping = &PyHamtIterator_as_mapping, \ 2897 .tp_as_mapping = &PyHamt_as_mapping,
|
D | context.c | 709 .tp_as_mapping = &PyContext_as_mapping,
|
/third_party/python/Doc/c-api/ |
D | typeobj.rst | 68 …| :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/ |
D | descriptor_containers.cc | 630 return Py_TYPE(list.get())->tp_as_mapping->mp_subscript(list.get(), item); in SeqSubscript()
|
/third_party/python/Doc/extending/ |
D | newtypes.rst | 452 PyMappingMethods *tp_as_mapping;
|