/external/python/cpython3/Objects/ |
D | abstract.c | 79 (Py_TYPE(o)->tp_as_mapping && Py_TYPE(o)->tp_as_mapping->mp_length); in _PyObject_HasLen() 155 m = Py_TYPE(o)->tp_as_mapping; in PyObject_GetItem() 208 m = Py_TYPE(o)->tp_as_mapping; in PyObject_SetItem() 240 m = Py_TYPE(o)->tp_as_mapping; in PyObject_DelItem() 1613 if (Py_TYPE(s)->tp_as_mapping && Py_TYPE(s)->tp_as_mapping->mp_length) { in PySequence_Size() 1763 if (Py_TYPE(s)->tp_as_mapping && Py_TYPE(s)->tp_as_mapping->mp_subscript) { in PySequence_GetItem() 1778 mp = Py_TYPE(s)->tp_as_mapping; in PySequence_GetSlice() 1817 if (Py_TYPE(s)->tp_as_mapping && Py_TYPE(s)->tp_as_mapping->mp_ass_subscript) { in PySequence_SetItem() 1850 if (Py_TYPE(s)->tp_as_mapping && Py_TYPE(s)->tp_as_mapping->mp_ass_subscript) { in PySequence_DelItem() 1868 mp = Py_TYPE(s)->tp_as_mapping; in PySequence_SetSlice() [all …]
|
D | object.c | 1405 else if (Py_TYPE(v)->tp_as_mapping != NULL && in PyObject_IsTrue() 1406 Py_TYPE(v)->tp_as_mapping->mp_length != NULL) in PyObject_IsTrue() 1407 res = (*Py_TYPE(v)->tp_as_mapping->mp_length)(v); in PyObject_IsTrue()
|
D | typeobject.c | 2617 type->tp_as_mapping = &et->as_mapping; in type_new() 2995 type->tp_as_mapping = &res->as_mapping; in PyType_FromModuleAndSpec() 5195 #define COPYMAP(SLOT) COPYSLOT(tp_as_mapping->SLOT) in inherit_slots() 5265 if (type->tp_as_mapping != NULL && base->tp_as_mapping != NULL) { in inherit_slots() 5267 if (basebase->tp_as_mapping == NULL) in inherit_slots() 5574 if (type->tp_as_mapping == NULL) in PyType_Ready() 5575 type->tp_as_mapping = base->tp_as_mapping; in PyType_Ready() 7329 ptr = (char *)type->tp_as_mapping; in slotptr()
|
D | genericaliasobject.c | 593 .tp_as_mapping = &ga_as_mapping,
|
D | bytesobject.c | 618 if (Py_TYPE(args)->tp_as_mapping && Py_TYPE(args)->tp_as_mapping->mp_subscript && in _PyBytes_FormatEx()
|
/external/python/cpython2/Doc/includes/ |
D | typestruct.h | 19 PyMappingMethods *tp_as_mapping; member
|
/external/python/cpython3/Doc/includes/ |
D | typestruct.h | 20 PyMappingMethods *tp_as_mapping; member
|
/external/python/cpython2/Objects/ |
D | abstract.c | 142 m = o->ob_type->tp_as_mapping; in PyObject_GetItem() 171 m = o->ob_type->tp_as_mapping; in PyObject_SetItem() 203 m = o->ob_type->tp_as_mapping; in PyObject_DelItem() 2031 } else if ((mp = s->ob_type->tp_as_mapping) && mp->mp_subscript) { 2123 } else if ((mp = s->ob_type->tp_as_mapping) && mp->mp_ass_subscript) { 2430 return o && o->ob_type->tp_as_mapping && 2431 o->ob_type->tp_as_mapping->mp_subscript && 2446 m = o->ob_type->tp_as_mapping;
|
D | object.c | 1584 else if (v->ob_type->tp_as_mapping != NULL && in PyObject_IsTrue() 1585 v->ob_type->tp_as_mapping->mp_length != NULL) in PyObject_IsTrue() 1586 res = (*v->ob_type->tp_as_mapping->mp_length)(v); in PyObject_IsTrue()
|
D | typeobject.c | 2370 type->tp_as_mapping = &et->as_mapping; in type_new() 3947 #define COPYMAP(SLOT) COPYSLOT(tp_as_mapping->SLOT) 4018 if (type->tp_as_mapping != NULL && base->tp_as_mapping != NULL) { 4020 if (basebase->tp_as_mapping == NULL) 4289 if (type->tp_as_mapping == NULL) 4290 type->tp_as_mapping = base->tp_as_mapping; 6249 ptr = (char *)type->tp_as_mapping;
|
D | bytesobject.c | 626 if (Py_TYPE(args)->tp_as_mapping && Py_TYPE(args)->tp_as_mapping->mp_subscript && in _PyBytes_FormatEx()
|
D | stringobject.c | 4274 if (Py_TYPE(args)->tp_as_mapping && Py_TYPE(args)->tp_as_mapping->mp_subscript && in PyString_Format()
|
D | unicodeobject.c | 8387 if (Py_TYPE(args)->tp_as_mapping && Py_TYPE(args)->tp_as_mapping->mp_subscript && in PyUnicode_Format()
|
/external/python/cpython3/Modules/_sqlite/ |
D | row.c | 275 pysqlite_RowType.tp_as_mapping = &pysqlite_row_as_mapping; in pysqlite_row_setup_types()
|
/external/python/cpython2/Modules/_sqlite/ |
D | row.c | 281 pysqlite_RowType.tp_as_mapping = &pysqlite_row_as_mapping; in pysqlite_row_setup_types()
|
/external/python/cpython3/Include/cpython/ |
D | object.h | 212 PyMappingMethods *tp_as_mapping; member
|
/external/python/cpython2/Include/ |
D | object.h | 342 PyMappingMethods *tp_as_mapping; member
|
/external/python/pybind11/include/pybind11/detail/ |
D | class.h | 668 type->tp_as_mapping = &heap_type->as_mapping; in make_new_python_type()
|
/external/python/cpython3/Python/ |
D | context.c | 693 .tp_as_mapping = &PyContext_as_mapping,
|
D | hamt.c | 2620 .tp_as_mapping = &PyHamtIterator_as_mapping, \ 2916 .tp_as_mapping = &PyHamt_as_mapping,
|
/external/protobuf/python/google/protobuf/pyext/ |
D | descriptor_containers.cc | 628 return Py_TYPE(list.get())->tp_as_mapping->mp_subscript(list.get(), item); in SeqSubscript()
|
/external/python/cpython3/Doc/c-api/ |
D | typeobj.rst | 68 …| :c:member:`~PyTypeObject.tp_as_mapping` | :c:type:`PyMappingMethods` * | :ref:`sub-s… 832 .. c:member:: PyMappingMethods* PyTypeObject.tp_as_mapping 840 The :c:member:`~PyTypeObject.tp_as_mapping` field is not inherited, but the contained fields 986 …_as_number`, :c:member:`~PyTypeObject.tp_as_sequence`, :c:member:`~PyTypeObject.tp_as_mapping`, and 2488 0, /* tp_as_mapping */
|
/external/python/cpython2/Doc/c-api/ |
D | typeobj.rst | 313 .. c:member:: PyMappingMethods* tp_as_mapping 319 The :c:member:`~PyTypeObject.tp_as_mapping` field is not inherited, but the contained fields 422 …_as_number`, :c:member:`~PyTypeObject.tp_as_sequence`, :c:member:`~PyTypeObject.tp_as_mapping`, and
|
/external/python/cpython3/Doc/extending/ |
D | newtypes.rst | 435 PyMappingMethods *tp_as_mapping;
|
/external/python/cpython2/Doc/extending/ |
D | newtypes.rst | 94 0, /* tp_as_mapping */ 1373 PyMappingMethods *tp_as_mapping;
|