[Python-ideas] Automatic total ordering
Terry Jones
terry at jon.es
Wed Oct 15 17:11:46 CEST 2008
>>>>> "George" == George Sakkis <george.sakkis at gmail.com> writes:
George> Now that 3.x fixes the arbitrary object comparison wart and drops
George> (?) __cmp__, it seems it's a good time to do something with the
George> missing rich comparators gotcha, e.g. given a class that defines
George> __eq__ and __lt__, automatically provide the rest missing
George> comparisons.
Note
http://www.voidspace.org.uk/python/weblog/arch_d7_2008_10_04.shtml#e1018
Regards,
Terry
More information about the Python-ideas
mailing list