Home
last modified time | relevance | path

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

/external/python/cpython2/Doc/includes/
Dtypestruct.h19 PyMappingMethods *tp_as_mapping; member
/external/python/cpython3/Doc/includes/
Dtypestruct.h20 PyMappingMethods *tp_as_mapping; member
/external/python/cpython3/Objects/
Dabstract.c72 (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()
Dobject.c1238 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()
Dtypeobject.c2516 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()
Dbytesobject.c611 if (Py_TYPE(args)->tp_as_mapping && Py_TYPE(args)->tp_as_mapping->mp_subscript && in _PyBytes_FormatEx()
/external/python/cpython2/Objects/
Dabstract.c142 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;
Dobject.c1579 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()
Dtypeobject.c2367 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;
Dstringobject.c4277 if (Py_TYPE(args)->tp_as_mapping && Py_TYPE(args)->tp_as_mapping->mp_subscript && in PyString_Format()
Dunicodeobject.c8391 if (Py_TYPE(args)->tp_as_mapping && Py_TYPE(args)->tp_as_mapping->mp_subscript && in PyUnicode_Format()
/external/python/cpython3/Modules/_sqlite/
Drow.c277 pysqlite_RowType.tp_as_mapping = &pysqlite_row_as_mapping; in pysqlite_row_setup_types()
/external/python/cpython2/Modules/_sqlite/
Drow.c281 pysqlite_RowType.tp_as_mapping = &pysqlite_row_as_mapping; in pysqlite_row_setup_types()
/external/python/cpython2/Include/
Dobject.h342 PyMappingMethods *tp_as_mapping; member
/external/python/cpython3/Include/
Dobject.h365 PyMappingMethods *tp_as_mapping; member
/external/python/cpython3/Doc/c-api/
Dtypeobj.rst277 .. 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/
Dtypeobj.rst313 .. 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/
Dnewtypes.rst91 0, /* tp_as_mapping */
1308 PyMappingMethods *tp_as_mapping;
/external/python/cpython2/Doc/extending/
Dnewtypes.rst95 0, /*tp_as_mapping*/
1369 PyMappingMethods *tp_as_mapping;