> 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. Good idea. I'll check that in, and use PyNumber_Check() in default_3way_compare() as in my previous post. --Guido van Rossum (home page: http://www.python.org/~guido/)