Lines Matching refs:tp_as_number
885 return o && o->ob_type->tp_as_number &&
886 (o->ob_type->tp_as_number->nb_int ||
887 o->ob_type->tp_as_number->nb_float);
929 if (v->ob_type->tp_as_number != NULL && NEW_STYLE_NUMBER(v))
930 slotv = NB_BINOP(v->ob_type->tp_as_number, op_slot);
932 w->ob_type->tp_as_number != NULL && NEW_STYLE_NUMBER(w)) {
933 slotw = NB_BINOP(w->ob_type->tp_as_number, op_slot);
962 PyNumberMethods *mv = v->ob_type->tp_as_number;
1047 mv = v->ob_type->tp_as_number;
1048 mw = w->ob_type->tp_as_number;
1076 mz = z->ob_type->tp_as_number;
1102 if (v->ob_type->tp_as_number) {
1103 slotz = NB_TERNOP(v->ob_type->tp_as_number,
1125 if (v1->ob_type->tp_as_number != NULL) {
1126 slotv = NB_TERNOP(v1->ob_type->tp_as_number,
1280 PyNumberMethods *mv = v->ob_type->tp_as_number;
1398 if (HASINPLACE(v) && v->ob_type->tp_as_number &&
1399 v->ob_type->tp_as_number->nb_inplace_power != NULL) {
1417 m = o->ob_type->tp_as_number;
1431 m = o->ob_type->tp_as_number;
1445 m = o->ob_type->tp_as_number;
1459 m = o->ob_type->tp_as_number;
1500 result = item->ob_type->tp_as_number->nb_index(item);
1579 /* Don't go through tp_as_number->nb_int to avoid
1631 m = o->ob_type->tp_as_number;
1712 m = o->ob_type->tp_as_number;
1782 m = o->ob_type->tp_as_number;