Lines Matching refs:tp_as_number
2361 (base->tp_as_number == NULL))
2365 type->tp_as_number = &et->as_number;
2850 0, /* tp_as_number */
3629 0, /* tp_as_number */
3764 if ((!type->tp_as_number && base->tp_as_number) ||
3767 if (!type->tp_as_number && !type->tp_as_sequence) {
3774 if (!type->tp_as_number && base->tp_as_number) {
3882 #define COPYNUM(SLOT) COPYSLOT(tp_as_number->SLOT)
3887 /* This won't inherit indirect slots (from tp_as_number etc.)
3890 if (type->tp_as_number != NULL && base->tp_as_number != NULL) {
3892 if (basebase->tp_as_number == NULL)
4222 if (type->tp_as_number == NULL)
4223 type->tp_as_number = base->tp_as_number;
5012 Py_TYPE(other)->tp_as_number != NULL && \
5013 Py_TYPE(other)->tp_as_number->SLOTNAME == TESTFUNC; \
5014 if (Py_TYPE(self)->tp_as_number != NULL && \
5015 Py_TYPE(self)->tp_as_number->SLOTNAME == TESTFUNC) { \
5250 if (Py_TYPE(self)->tp_as_number != NULL &&
5251 Py_TYPE(self)->tp_as_number->nb_power == slot_nb_power) {
5325 if (self->ob_type->tp_as_number != NULL &&
5326 self->ob_type->tp_as_number->nb_coerce == slot_nb_coerce) {
5350 if (other->ob_type->tp_as_number != NULL &&
5351 other->ob_type->tp_as_number->nb_coerce == slot_nb_coerce) {
6190 ptr = (char *)type->tp_as_number;
6817 0, /* tp_as_number */