Home
last modified time | relevance | path

Searched refs:mp_subscript (Results 1 – 15 of 15) sorted by relevance

/external/python/cpython3/Objects/
Dtypeslots.inc6 offsetof(PyHeapTypeObject, as_mapping.mp_subscript),
Dabstract.c156 if (m && m->mp_subscript) { in PyObject_GetItem()
157 PyObject *item = m->mp_subscript(o, key); in PyObject_GetItem()
1763 if (Py_TYPE(s)->tp_as_mapping && Py_TYPE(s)->tp_as_mapping->mp_subscript) { in PySequence_GetItem()
1779 if (mp && mp->mp_subscript) { in PySequence_GetSlice()
1784 res = mp->mp_subscript(s, slice); in PySequence_GetSlice()
2172 Py_TYPE(o)->tp_as_mapping->mp_subscript; in PyMapping_Check()
Dgenericaliasobject.c363 .mp_subscript = ga_getitem,
Dbytesobject.c618 if (Py_TYPE(args)->tp_as_mapping && Py_TYPE(args)->tp_as_mapping->mp_subscript && in _PyBytes_FormatEx()
Dtypeobject.c5270 COPYMAP(mp_subscript); in inherit_slots()
7269 MPSLOT("__getitem__", mp_subscript, slot_mp_subscript,
/external/python/cpython3/Include/cpython/
Dobject.h174 binaryfunc mp_subscript; member
/external/python/cpython2/Objects/
Dabstract.c143 if (m && m->mp_subscript) in PyObject_GetItem()
144 return m->mp_subscript(o, key); in PyObject_GetItem()
2031 } else if ((mp = s->ob_type->tp_as_mapping) && mp->mp_subscript) {
2036 res = mp->mp_subscript(s, slice);
2431 o->ob_type->tp_as_mapping->mp_subscript &&
Dbytesobject.c626 if (Py_TYPE(args)->tp_as_mapping && Py_TYPE(args)->tp_as_mapping->mp_subscript && in _PyBytes_FormatEx()
Dtypeobject.c4023 COPYMAP(mp_subscript);
6180 MPSLOT("__getitem__", mp_subscript, slot_mp_subscript,
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/cpython2/Include/
Dobject.h291 binaryfunc mp_subscript; member
/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.rst292 …| :c:member:`~PyMappingMethods.mp_subscript` | :c:type:`binaryfunc` | __…
2093 .. c:member:: binaryfunc PyMappingMethods.mp_subscript
2147 the subscription via the :c:member:`~PyMappingMethods.mp_subscript` slot.
/external/python/cpython2/Doc/c-api/
Dtypeobj.rst1249 .. c:member:: binaryfunc PyMappingMethods.mp_subscript