[Python-ideas] Automatic total ordering

Terry Reedy tjreedy at udel.edu
Wed Oct 15 20:03:40 CEST 2008


George Sakkis wrote:
> Now that 3.x fixes the arbitrary object comparison wart and drops (?) 
> __cmp__, 

An entry for __cmp__ was in the 3.0c1 doc, which confused me.
It is now gone in
http://docs.python.org/dev/3.0/reference/datamodel.html#special-method-names

Since rich comparisons are defined on object and are inherited by all 
classes, it would be difficult to make them not defined.




More information about the Python-ideas mailing list