[Python-Dev] various unix platform build/test issues (original) (raw)

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


Guido van Rossum wrote:

[Neal, later] > The tpasnumber check in default3waycompare pretty bogus though, > IMHO. With the new type changes a lot of types have a tpasnumber > 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