Guido rethinking removal of cmp from sort method

Paul Rubin no.email at nospam.invalid
Tue Mar 15 04:00:44 EDT 2011


Ian Kelly <ian.g.kelly at gmail.com> writes:
> I would think that you can sort them with key as long as none of the
> sequences are equal (which would result in an infinite loop using
> either method).  Why not this?

Yes you can do something like that, but look how ugly it is compared
with using cmp.



More information about the Python-list mailing list