[Python-3000] Please re-add __cmp__ to python 3000
Jim Jewett
jimjjewett at gmail.com
Mon Nov 19 15:41:41 CET 2007
On 11/17/07, Greg Ewing <greg.ewing at canterbury.ac.nz> wrote:
> Martin v. Löwis wrote:
> > or __cmp__ would
> > have to be extended to support "unordered" as a result.
>
> That's what I think should be done.
Note that this would make it slightly easier to pass a custom sort
function that forced everything to be totally ordered[*], but followed
the standard ordering when one was available.
[*] yes, it would be possible to trick this function with so that the
end result for a full sequence depended on the order of comparisons.
But that is already true with custom comparisons.
-jJ
More information about the Python-3000
mailing list