Home
last modified time | relevance | path

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

/external/python/cpython3/Objects/
Dabstract.c79 (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 …]
Dobject.c1405 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()
Dtypeobject.c2617 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()
Dgenericaliasobject.c593 .tp_as_mapping = &ga_as_mapping,
Dbytesobject.c618 if (Py_TYPE(args)->tp_as_mapping && Py_TYPE(args)->tp_as_mapping->mp_subscript && in _PyBytes_FormatEx()
/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/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()
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;
Dobject.c1584 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()
Dtypeobject.c2370 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;
Dbytesobject.c626 if (Py_TYPE(args)->tp_as_mapping && Py_TYPE(args)->tp_as_mapping->mp_subscript && in _PyBytes_FormatEx()
Dstringobject.c4274 if (Py_TYPE(args)->tp_as_mapping && Py_TYPE(args)->tp_as_mapping->mp_subscript && in PyString_Format()
Dunicodeobject.c8387 if (Py_TYPE(args)->tp_as_mapping && Py_TYPE(args)->tp_as_mapping->mp_subscript && in PyUnicode_Format()
/external/python/cpython3/Modules/_sqlite/
Drow.c275 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/cpython3/Include/cpython/
Dobject.h212 PyMappingMethods *tp_as_mapping; member
/external/python/cpython2/Include/
Dobject.h342 PyMappingMethods *tp_as_mapping; member
/external/python/pybind11/include/pybind11/detail/
Dclass.h668 type->tp_as_mapping = &heap_type->as_mapping; in make_new_python_type()
/external/python/cpython3/Python/
Dcontext.c693 .tp_as_mapping = &PyContext_as_mapping,
Dhamt.c2620 .tp_as_mapping = &PyHamtIterator_as_mapping, \
2916 .tp_as_mapping = &PyHamt_as_mapping,
/external/protobuf/python/google/protobuf/pyext/
Ddescriptor_containers.cc628 return Py_TYPE(list.get())->tp_as_mapping->mp_subscript(list.get(), item); in SeqSubscript()
/external/python/cpython3/Doc/c-api/
Dtypeobj.rst68 …| :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/
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.rst435 PyMappingMethods *tp_as_mapping;
/external/python/cpython2/Doc/extending/
Dnewtypes.rst94 0, /* tp_as_mapping */
1373 PyMappingMethods *tp_as_mapping;