[Python-ideas] Allow key='attribute_name' to various sorting functions

Stephen J. Turnbull stephen at xemacs.org
Fri Apr 12 08:12:42 CEST 2013


Donald Stufft writes:

 > Special cases aren't special enough to break the rules.

Not to mention:

    In the face of ambiguity, refuse to guess.

N.B. This is part of why Steven d'A changes from -1 to +0 on "key=3".

This looks like POSIX sort(1), and cut(1), a bit, doesn't it.



More information about the Python-ideas mailing list