[Python-3000] Please re-add cmp to python 3000 (original) (raw)
Greg Ewing greg.ewing at canterbury.ac.nz
Thu Oct 18 01:36:48 CEST 2007
- Previous message: [Python-3000] Please re-add __cmp__ to python 3000
- Next message: [Python-3000] PEP 3137 plan of attack {stage 2]
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
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
- Previous message: [Python-3000] Please re-add __cmp__ to python 3000
- Next message: [Python-3000] PEP 3137 plan of attack {stage 2]
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]