Lines Matching refs:tp_as_number
761 return o && o->ob_type->tp_as_number && in PyNumber_Check()
762 (o->ob_type->tp_as_number->nb_int || in PyNumber_Check()
763 o->ob_type->tp_as_number->nb_float); in PyNumber_Check()
791 if (v->ob_type->tp_as_number != NULL) in binary_op1()
792 slotv = NB_BINOP(v->ob_type->tp_as_number, op_slot); in binary_op1()
794 w->ob_type->tp_as_number != NULL) { in binary_op1()
795 slotw = NB_BINOP(w->ob_type->tp_as_number, op_slot); in binary_op1()
880 mv = v->ob_type->tp_as_number; in ternary_op()
881 mw = w->ob_type->tp_as_number; in ternary_op()
909 mz = z->ob_type->tp_as_number; in ternary_op()
1053 PyNumberMethods *mv = v->ob_type->tp_as_number; in binary_iop1()
1174 if (v->ob_type->tp_as_number && in PyNumber_InPlacePower()
1175 v->ob_type->tp_as_number->nb_inplace_power != NULL) { in PyNumber_InPlacePower()
1195 m = o->ob_type->tp_as_number; in PyNumber_Negative()
1211 m = o->ob_type->tp_as_number; in PyNumber_Positive()
1227 m = o->ob_type->tp_as_number; in PyNumber_Invert()
1243 m = o->ob_type->tp_as_number; in PyNumber_Absolute()
1272 result = item->ob_type->tp_as_number->nb_index(item); in PyNumber_Index()
1358 m = o->ob_type->tp_as_number; in PyNumber_Long()
1379 m = result->ob_type->tp_as_number; in PyNumber_Long()
1446 m = o->ob_type->tp_as_number; in PyNumber_Float()