Home
last modified time | relevance | path

Searched refs:nb_int (Results 1 - 5 of 5) sorted by relevance

/third_party/python/Include/cpython/
H A Dobject.h82 unaryfunc nb_int; member
/third_party/python/Objects/
H A Dabstract.c837 return nb && (nb->nb_index || nb->nb_int || nb->nb_float || PyComplex_Check(o)); in PyNumber_Check()
1534 if (m && m->nb_int) { /* This should include subclasses of int */ in PyNumber_Long()
1535 /* Convert using the nb_int slot, which should return something in PyNumber_Long()
1537 result = m->nb_int(o); in PyNumber_Long()
H A Dtypeobject.c5897 COPYNUM(nb_int); in inherit_slots()
8141 UNSLOT("__int__", nb_int, slot_nb_int, wrap_unaryfunc,
/third_party/python/Modules/
H A Dmathmodule.c2163 return PyFloat_Type.tp_as_number->nb_int(x); in math_trunc()
/third_party/protobuf/python/google/protobuf/pyext/
H A Dmessage.cc668 if ((nb = arg->ob_type->tp_as_number) != NULL && nb->nb_int != NULL) { in CheckAndGetInteger()

Completed in 23 milliseconds