Lines Matching refs:tp_as_number
2338 (base->tp_as_number == NULL))
2342 type->tp_as_number = &et->as_number;
2784 0, /* tp_as_number */
3542 0, /* tp_as_number */
3673 if ((!type->tp_as_number && base->tp_as_number) ||
3676 if (!type->tp_as_number && !type->tp_as_sequence) {
3683 if (!type->tp_as_number && base->tp_as_number) {
3791 #define COPYNUM(SLOT) COPYSLOT(tp_as_number->SLOT)
3796 /* This won't inherit indirect slots (from tp_as_number etc.)
3799 if (type->tp_as_number != NULL && base->tp_as_number != NULL) {
3801 if (basebase->tp_as_number == NULL)
4125 if (type->tp_as_number == NULL)
4126 type->tp_as_number = base->tp_as_number;
4915 Py_TYPE(other)->tp_as_number != NULL && \
4916 Py_TYPE(other)->tp_as_number->SLOTNAME == TESTFUNC; \
4917 if (Py_TYPE(self)->tp_as_number != NULL && \
4918 Py_TYPE(self)->tp_as_number->SLOTNAME == TESTFUNC) { \
5153 if (Py_TYPE(self)->tp_as_number != NULL &&
5154 Py_TYPE(self)->tp_as_number->nb_power == slot_nb_power) {
5228 if (self->ob_type->tp_as_number != NULL &&
5229 self->ob_type->tp_as_number->nb_coerce == slot_nb_coerce) {
5253 if (other->ob_type->tp_as_number != NULL &&
5254 other->ob_type->tp_as_number->nb_coerce == slot_nb_coerce) {
6093 ptr = (char *)type->tp_as_number;
6718 0, /* tp_as_number */