Home
last modified time | relevance | path

Searched refs:nb_index (Results 1 – 21 of 21) sorted by relevance

/external/python/cpython3/Objects/
Dtypeslots.inc14 offsetof(PyHeapTypeObject, as_number.nb_index),
Dabstract.c762 (o->ob_type->tp_as_number->nb_index || in PyNumber_Check()
1257 obj->ob_type->tp_as_number->nb_index != NULL; in PyIndex_Check()
1282 result = item->ob_type->tp_as_number->nb_index(item); in PyNumber_Index()
1376 if (m && m->nb_index) { in PyNumber_Long()
1397 if (m == NULL || (m->nb_index == NULL && m->nb_int == NULL)) { in PyNumber_Long()
1490 if (m && m->nb_index) { in PyNumber_Float()
Dcomplexobject.c994 if (nbr == NULL || (nbr->nb_float == NULL && nbr->nb_index == NULL)) { in complex_new_impl()
1006 if (nbi == NULL || (nbi->nb_float == NULL && nbi->nb_index == NULL)) { in complex_new_impl()
Dlongobject.c208 if (nb == NULL || (nb->nb_index == NULL && nb->nb_int == NULL)) { in _PyLong_FromNbIndexOrNbInt()
215 if (nb->nb_index) { in _PyLong_FromNbIndexOrNbInt()
218 result = nb->nb_index(integral); in _PyLong_FromNbIndexOrNbInt()
Dfloatobject.c249 if (nb && nb->nb_index) { in PyFloat_AsDouble()
Dtypeobject.c5099 COPYNUM(nb_index); in inherit_slots()
7067 NBSLOT("__index__", nb_index, slot_nb_index, wrap_unaryfunc,
/external/python/cpython3/Include/cpython/
Dabstract.h271 (obj)->ob_type->tp_as_number->nb_index != NULL)
Dobject.h136 unaryfunc nb_index; member
/external/python/cpython2/Include/
Dabstract.h851 (obj)->ob_type->tp_as_number->nb_index != NULL)
Dobject.h272 unaryfunc nb_index; member
/external/python/cpython3/Doc/c-api/
Dnumber.rst284 Returns ``1`` if *o* is an index integer (has the nb_index slot of the
Dtypeobj.rst288 …| :c:member:`~PyNumberMethods.nb_index` | :c:type:`unaryfunc` | __…
2025 unaryfunc nb_index;
2079 .. c:member:: unaryfunc PyNumberMethods.nb_index
/external/python/cpython2/Doc/c-api/
Dnumber.rst319 Returns ``1`` if *o* is an index integer (has the nb_index slot of the
Dtypeobj.rst1198 unaryfunc nb_index;
/external/python/cpython2/Misc/NEWS.d/
D2.6b1.rst192 delegate nb_index and the floor/truediv slots in weakref.proxy.
/external/python/cpython2/Objects/
Dabstract.c1500 result = item->ob_type->tp_as_number->nb_index(item);
Dtypeobject.c3998 COPYNUM(nb_index);
6176 NBSLOT("__index__", nb_index, slot_nb_index, wrap_unaryfunc,
/external/python/cpython2/Doc/whatsnew/
D2.5.rst956 A corresponding :attr:`nb_index` slot was added to the C-level
/external/python/cpython3/Doc/whatsnew/
D2.5.rst957 A corresponding :attr:`nb_index` slot was added to the C-level
/external/python/cpython2/Misc/
DHISTORY1094 nb_index slot to the PyNumberMethods struct. The slot is consulted instead
/external/python/cpython3/Misc/
DHISTORY18478 nb_index slot to the PyNumberMethods struct. The slot is consulted instead