[issue1771] Remove cmp parameter to list.sort() and builtin.sorted()

Guido van Rossum report at bugs.python.org
Mon Dec 7 19:10:29 CET 2009


Guido van Rossum <guido at python.org> added the comment:

Python's sort implementation is carefully written to only use the "<" 
comparison, ever.  So a cmp really isn't the most natural way to specify 
a comparison.  (This should really be documented somewhere -- I know know 
it because Tim Peters & I shared an office while he did most of the work 
on Python's sort.)

----------

_______________________________________
Python tracker <report at bugs.python.org>
<http://bugs.python.org/issue1771>
_______________________________________


More information about the Python-bugs-list mailing list