Searched refs:nb_float (Results 1 – 8 of 8) sorted by relevance
12 {offsetof(PyNumberMethods, nb_float), offsetof(PyTypeObject, tp_as_number)},
927 (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()
269 if (nb == NULL || nb->nb_float == NULL) { in PyFloat_AsDouble()284 res = (*nb->nb_float) (op); in PyFloat_AsDouble()
835 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()
5802 COPYNUM(nb_float); in inherit_slots()8010 UNSLOT("__float__", nb_float, slot_nb_float, wrap_unaryfunc,
127 unaryfunc nb_float; member
273 …| :c:member:`~PyNumberMethods.nb_float` | :c:type:`unaryfunc` | __…2113 unaryfunc nb_float;2170 .. c:member:: unaryfunc PyNumberMethods.nb_float
21979 nb_float slot, rather than simply checking whether it has a non-NULL22238 - PyNumber_Check() now checks that the object has a nb_int or nb_float