Python 3 __cmp__ semantic change?
george.sakkis at gmail.com
Fri Nov 21 02:01:09 CET 2008
On Nov 20, 6:58 pm, s... at pobox.com wrote:
> Johannes> Seems it was removed on purpose - I'm sure there was a good
> Johannes> reason for that, but may I ask why?
> Start here:
> Also, a comment to this blog post suggests creating a CmpMixin:
Dropping __cmp__ without providing implicit or at least easy explicit
 total ordering is (was?) a mistake; it opens the door to subtle
bugs or redundant boilerplate code.
 E.g. http://code.activestate.com/recipes/576529/
More information about the Python-list