Guido rethinking removal of cmp from sort method

Paul Rubin no.email at nospam.invalid
Wed Mar 23 16:38:53 EDT 2011


Carl Banks <pavlovevidence at gmail.com> writes:
> It's kind of ridiculous to claim that cmp adds much complexity (it's
> maybe ten lines of extra C code), so the only reason not to include it
> is that it's much slower than using key.

Well, I thought it was also to get rid of 3-way cmp in general, in favor
of rich comparison.



More information about the Python-list mailing list