Searched refs:tp_as_mapping (Results 1 – 13 of 13) sorted by relevance
254 pysqlite_RowType.tp_as_mapping = &pysqlite_row_as_mapping; in pysqlite_row_setup_types()
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()2017 } else if ((mp = s->ob_type->tp_as_mapping) && mp->mp_subscript) {2109 } else if ((mp = s->ob_type->tp_as_mapping) && mp->mp_ass_subscript) {2415 return o && o->ob_type->tp_as_mapping &&2416 o->ob_type->tp_as_mapping->mp_subscript &&2431 m = o->ob_type->tp_as_mapping;
2344 type->tp_as_mapping = &et->as_mapping; in type_new()3793 #define COPYMAP(SLOT) COPYSLOT(tp_as_mapping->SLOT)3864 if (type->tp_as_mapping != NULL && base->tp_as_mapping != NULL) {3866 if (basebase->tp_as_mapping == NULL)4129 if (type->tp_as_mapping == NULL)4130 type->tp_as_mapping = base->tp_as_mapping;6089 ptr = (char *)type->tp_as_mapping;
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()
4262 if (Py_TYPE(args)->tp_as_mapping && Py_TYPE(args)->tp_as_mapping->mp_subscript && in PyString_Format()
8378 if (Py_TYPE(args)->tp_as_mapping && Py_TYPE(args)->tp_as_mapping->mp_subscript && in PyUnicode_Format()
2324 type->tp_as_mapping = &et->as_mapping; in type_new()3758 #define COPYMAP(SLOT) COPYSLOT(tp_as_mapping->SLOT)3829 if (type->tp_as_mapping != NULL && base->tp_as_mapping != NULL) {3831 if (basebase->tp_as_mapping == NULL)4077 if (type->tp_as_mapping == NULL)4078 type->tp_as_mapping = base->tp_as_mapping;6039 ptr = (char *)type->tp_as_mapping;
1572 else if (v->ob_type->tp_as_mapping != NULL && in PyObject_IsTrue()1573 v->ob_type->tp_as_mapping->mp_length != NULL) in PyObject_IsTrue()1574 res = (*v->ob_type->tp_as_mapping->mp_length)(v); in PyObject_IsTrue()
4242 if (Py_TYPE(args)->tp_as_mapping && !PyTuple_Check(args) && in PyString_Format()
8274 if (Py_TYPE(args)->tp_as_mapping && !PyTuple_Check(args) && in PyUnicode_Format()
342 PyMappingMethods *tp_as_mapping; member