Home
last modified time | relevance | path

Searched refs:nb_float (Results 1 – 8 of 8) sorted by relevance

/third_party/python/Objects/
Dtypeslots.inc12 {offsetof(PyNumberMethods, nb_float), offsetof(PyTypeObject, tp_as_number)},
Dcomplexobject.c927 (nbr->nb_float == NULL && nbr->nb_index == NULL && !PyComplex_Check(r))) in complex_new_impl()
941 (nbi->nb_float == NULL && nbi->nb_index == NULL && !PyComplex_Check(i))) in complex_new_impl()
Dfloatobject.c269 if (nb == NULL || nb->nb_float == NULL) { in PyFloat_AsDouble()
284 res = (*nb->nb_float) (op); in PyFloat_AsDouble()
Dabstract.c835 return nb && (nb->nb_index || nb->nb_int || nb->nb_float || PyComplex_Check(o)); in PyNumber_Check()
1652 if (m && m->nb_float) { /* This should include subclasses of float */ in PyNumber_Float()
1653 PyObject *res = m->nb_float(o); in PyNumber_Float()
Dtypeobject.c5802 COPYNUM(nb_float); in inherit_slots()
8010 UNSLOT("__float__", nb_float, slot_nb_float, wrap_unaryfunc,
/third_party/python/Include/cpython/
Dobject.h127 unaryfunc nb_float; member
/third_party/python/Doc/c-api/
Dtypeobj.rst273 …| :c:member:`~PyNumberMethods.nb_float` | :c:type:`unaryfunc` | __…
2113 unaryfunc nb_float;
2170 .. c:member:: unaryfunc PyNumberMethods.nb_float
/third_party/python/Misc/
DHISTORY21979 nb_float slot, rather than simply checking whether it has a non-NULL
22238 - PyNumber_Check() now checks that the object has a nb_int or nb_float