Home
last modified time | relevance | path

Searched refs:nb_coerce (Results 1 – 5 of 5) sorted by relevance

/external/python/cpython2/Objects/
Dobject.c1631 if (v->ob_type->tp_as_number && v->ob_type->tp_as_number->nb_coerce) { in PyNumber_CoerceEx()
1632 res = (*v->ob_type->tp_as_number->nb_coerce)(pv, pw); in PyNumber_CoerceEx()
1636 if (w->ob_type->tp_as_number && w->ob_type->tp_as_number->nb_coerce) { in PyNumber_CoerceEx()
1637 res = (*w->ob_type->tp_as_number->nb_coerce)(pw, pv); in PyNumber_CoerceEx()
Dtypeobject.c3974 COPYNUM(nb_coerce);
5389 self->ob_type->tp_as_number->nb_coerce == slot_nb_coerce) {
5414 other->ob_type->tp_as_number->nb_coerce == slot_nb_coerce) {
6134 NBSLOT("__coerce__", nb_coerce, slot_nb_coerce, wrap_coercefunc,
/external/python/cpython2/Include/
Dobject.h245 coercion nb_coerce; member
/external/python/cpython2/Doc/c-api/
Dtypeobj.rst1171 coercion nb_coerce; /* Used by the coerce() function */
1207 the coercion method specified by the :attr:`nb_coerce` member to convert the
1210 .. c:member:: coercion PyNumberMethods.nb_coerce
/external/python/cpython3/Misc/
DHISTORY16667 - Three of PyNumberMethods' members, nb_coerce, nb_hex, and nb_oct, have been