Searched refs:tp_as_mapping (Results 1 – 19 of 19) sorted by relevance
/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/cpython3/Objects/ |
D | abstract.c | 72 (Py_TYPE(o)->tp_as_mapping && Py_TYPE(o)->tp_as_mapping->mp_length); in _PyObject_HasLen() 146 m = o->ob_type->tp_as_mapping; in PyObject_GetItem() 178 m = o->ob_type->tp_as_mapping; in PyObject_SetItem() 210 m = o->ob_type->tp_as_mapping; in PyObject_DelItem() 1641 mp = s->ob_type->tp_as_mapping; in PySequence_GetSlice() 1719 mp = s->ob_type->tp_as_mapping; in PySequence_SetSlice() 1744 mp = s->ob_type->tp_as_mapping; in PySequence_DelSlice() 2020 return o && o->ob_type->tp_as_mapping && in PyMapping_Check() 2021 o->ob_type->tp_as_mapping->mp_subscript; in PyMapping_Check() 2034 m = o->ob_type->tp_as_mapping; in PyMapping_Size()
|
D | object.c | 1238 else if (v->ob_type->tp_as_mapping != NULL && in PyObject_IsTrue() 1239 v->ob_type->tp_as_mapping->mp_length != NULL) in PyObject_IsTrue() 1240 res = (*v->ob_type->tp_as_mapping->mp_length)(v); in PyObject_IsTrue()
|
D | typeobject.c | 2516 type->tp_as_mapping = &et->as_mapping; in type_new() 2805 type->tp_as_mapping = &res->as_mapping; in PyType_FromSpecWithBases() 4734 #define COPYMAP(SLOT) COPYSLOT(tp_as_mapping->SLOT) in inherit_slots() 4804 if (type->tp_as_mapping != NULL && base->tp_as_mapping != NULL) { in inherit_slots() 4806 if (basebase->tp_as_mapping == NULL) in inherit_slots() 5071 if (type->tp_as_mapping == NULL) in PyType_Ready() 5072 type->tp_as_mapping = base->tp_as_mapping; in PyType_Ready() 6756 ptr = (char *)type->tp_as_mapping; in slotptr()
|
D | bytesobject.c | 611 if (Py_TYPE(args)->tp_as_mapping && Py_TYPE(args)->tp_as_mapping->mp_subscript && in _PyBytes_FormatEx()
|
/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() 2034 } else if ((mp = s->ob_type->tp_as_mapping) && mp->mp_subscript) { 2126 } else if ((mp = s->ob_type->tp_as_mapping) && mp->mp_ass_subscript) { 2433 return o && o->ob_type->tp_as_mapping && 2434 o->ob_type->tp_as_mapping->mp_subscript && 2449 m = o->ob_type->tp_as_mapping;
|
D | object.c | 1579 else if (v->ob_type->tp_as_mapping != NULL && in PyObject_IsTrue() 1580 v->ob_type->tp_as_mapping->mp_length != NULL) in PyObject_IsTrue() 1581 res = (*v->ob_type->tp_as_mapping->mp_length)(v); in PyObject_IsTrue()
|
D | typeobject.c | 2367 type->tp_as_mapping = &et->as_mapping; in type_new() 3884 #define COPYMAP(SLOT) COPYSLOT(tp_as_mapping->SLOT) 3955 if (type->tp_as_mapping != NULL && base->tp_as_mapping != NULL) { 3957 if (basebase->tp_as_mapping == NULL) 4226 if (type->tp_as_mapping == NULL) 4227 type->tp_as_mapping = base->tp_as_mapping; 6186 ptr = (char *)type->tp_as_mapping;
|
D | stringobject.c | 4277 if (Py_TYPE(args)->tp_as_mapping && Py_TYPE(args)->tp_as_mapping->mp_subscript && in PyString_Format()
|
D | unicodeobject.c | 8391 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 | 277 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/cpython2/Include/ |
D | object.h | 342 PyMappingMethods *tp_as_mapping; member
|
/external/python/cpython3/Include/ |
D | object.h | 365 PyMappingMethods *tp_as_mapping; member
|
/external/python/cpython3/Doc/c-api/ |
D | typeobj.rst | 277 .. c:member:: PyMappingMethods* tp_as_mapping 283 The :c:member:`~PyTypeObject.tp_as_mapping` field is not inherited, but the contained fields 385 …_as_number`, :c:member:`~PyTypeObject.tp_as_sequence`, :c:member:`~PyTypeObject.tp_as_mapping`, and
|
/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 | 91 0, /* tp_as_mapping */ 1308 PyMappingMethods *tp_as_mapping;
|
/external/python/cpython2/Doc/extending/ |
D | newtypes.rst | 95 0, /*tp_as_mapping*/ 1369 PyMappingMethods *tp_as_mapping;
|