Re: [Python-ideas] Automatic total ordering

Oct. 15, 2008
3:11 p.m.
"George" == George Sakkis <george.sakkis@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
5977
Age (days ago)
5977
Last active (days ago)
0 comments
1 participants
participants (1)
-
Terry Jones