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

METAL XXX report at bugs.python.org
Tue Jul 20 22:34:52 CEST 2010


METAL XXX <metal29a at gmail.com> added the comment:

Shame on me, after a long time I realized the problem referenced in my old post (http://bugs.python.org/msg102019) was actually topological sorting. It can't be done by Python's sort(), which doesn't support partial order. Trying to use cmp parameter is completely wrong. And cmp would mislead people like me to sort a partial order, evil! Now I'm absolutely agree with gone of cmp, viva Raymond Hettinger!

----------

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


More information about the Python-bugs-list mailing list