Searched refs:nb_index (Results 1 – 21 of 21) sorted by relevance
/external/python/cpython3/Objects/ |
D | typeslots.inc | 14 offsetof(PyHeapTypeObject, as_number.nb_index),
|
D | abstract.c | 762 (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()
|
D | complexobject.c | 994 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()
|
D | longobject.c | 208 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()
|
D | floatobject.c | 249 if (nb && nb->nb_index) { in PyFloat_AsDouble()
|
D | typeobject.c | 5099 COPYNUM(nb_index); in inherit_slots() 7067 NBSLOT("__index__", nb_index, slot_nb_index, wrap_unaryfunc,
|
/external/python/cpython3/Include/cpython/ |
D | abstract.h | 271 (obj)->ob_type->tp_as_number->nb_index != NULL)
|
D | object.h | 136 unaryfunc nb_index; member
|
/external/python/cpython2/Include/ |
D | abstract.h | 851 (obj)->ob_type->tp_as_number->nb_index != NULL)
|
D | object.h | 272 unaryfunc nb_index; member
|
/external/python/cpython3/Doc/c-api/ |
D | number.rst | 284 Returns ``1`` if *o* is an index integer (has the nb_index slot of the
|
D | typeobj.rst | 288 …| :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/ |
D | number.rst | 319 Returns ``1`` if *o* is an index integer (has the nb_index slot of the
|
D | typeobj.rst | 1198 unaryfunc nb_index;
|
/external/python/cpython2/Misc/NEWS.d/ |
D | 2.6b1.rst | 192 delegate nb_index and the floor/truediv slots in weakref.proxy.
|
/external/python/cpython2/Objects/ |
D | abstract.c | 1500 result = item->ob_type->tp_as_number->nb_index(item);
|
D | typeobject.c | 3998 COPYNUM(nb_index); 6176 NBSLOT("__index__", nb_index, slot_nb_index, wrap_unaryfunc,
|
/external/python/cpython2/Doc/whatsnew/ |
D | 2.5.rst | 956 A corresponding :attr:`nb_index` slot was added to the C-level
|
/external/python/cpython3/Doc/whatsnew/ |
D | 2.5.rst | 957 A corresponding :attr:`nb_index` slot was added to the C-level
|
/external/python/cpython2/Misc/ |
D | HISTORY | 1094 nb_index slot to the PyNumberMethods struct. The slot is consulted instead
|
/external/python/cpython3/Misc/ |
D | HISTORY | 18478 nb_index slot to the PyNumberMethods struct. The slot is consulted instead
|