Home
last modified time | relevance | path

Searched refs:mp_length (Results 1 - 5 of 5) sorted by relevance

/third_party/python/Include/cpython/
H A Dobject.h123 lenfunc mp_length; member
/third_party/python/Objects/
H A Dabstract.c81 (Py_TYPE(o)->tp_as_mapping && Py_TYPE(o)->tp_as_mapping->mp_length); in _PyObject_HasLen()
1737 if (Py_TYPE(s)->tp_as_mapping && Py_TYPE(s)->tp_as_mapping->mp_length) { in PySequence_Size()
2318 if (m && m->mp_length) { in PyMapping_Size()
2319 Py_ssize_t len = m->mp_length(o); in PyMapping_Size()
H A Dobject.c1510 Py_TYPE(v)->tp_as_mapping->mp_length != NULL) in PyObject_IsTrue()
1511 res = (*Py_TYPE(v)->tp_as_mapping->mp_length)(v); in PyObject_IsTrue()
H A Dtypeobject.c5945 COPYMAP(mp_length); in inherit_slots()
8183 MPSLOT("__len__", mp_length, slot_mp_length, wrap_lenfunc,
/third_party/python/Modules/
H A D_testcapimodule.c1118 lenfunc mp_length = PyType_GetSlot(&PyLong_Type, Py_mp_length); in test_get_statictype_slots() local
1119 if (mp_length != NULL) { in test_get_statictype_slots()
1120 PyErr_SetString(PyExc_AssertionError, "mismatch: mp_length of long"); in test_get_statictype_slots()

Completed in 28 milliseconds