[issue1771] Remove cmp parameter to list.sort() and builtin.sorted()
Raymond Hettinger
report at bugs.python.org
Wed Jan 9 01:42:21 CET 2008
Raymond Hettinger added the comment:
Forgot to mention, the easy work-around is to do two consecutive sorts
and take advantage of the guaranteed stability:
l.sort(key=secondary, reverse=True)
l.sort(key=primary)
__________________________________
Tracker <report at bugs.python.org>
<http://bugs.python.org/issue1771>
__________________________________
More information about the Python-bugs-list
mailing list