[Python-3000] Please re-add __cmp__ to python 3000

Greg Ewing greg.ewing at canterbury.ac.nz
Thu Oct 18 01:36:48 CEST 2007


David A. Wheeler wrote:
> But mixins for comparison are a BIG LOSER for sort performance

Why not provide a __richcmp__ method that directly connects
with the corresponding type slot? All the comparisons
eventually end up there anyway, so it seems like the
right place to provide a one-stop comparison method
in the 3.0 age.

--
Greg


More information about the Python-3000 mailing list