[Python-Dev] various unix platform build/test issues

Neil Schemenauer nas@python.ca
Tue, 18 Feb 2003 08:24:39 -0800


Guido van Rossum wrote:
> [Neal, later]
> > The tp_as_number check in default_3way_compare pretty bogus though,
> > IMHO.  With the new type changes a lot of types have a tp_as_number
> > slot.  I think the compare code needs to change.
> 
> Yes, but how?

Maybe PyNumber_Check should check for (tp_as_number and (nb_int or
nb_float)) and then default_3way_compare should use it instead of
checking for tp_as_number. 

  Neil