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
RetroSearch is an open source project built by @garambo | Open a GitHub Issue
Search and Browse the WWW like it's 1997 | Search results from DuckDuckGo
HTML:
3.2
| Encoding:
UTF-8
| Version:
0.7.4