[Python-Dev] Tuples and underorderable types
"Martin v. Löwis"
martin at v.loewis.de
Fri Apr 24 20:31:54 CEST 2009
> I'm wondering if there is something we can do to mitigate
> the issue in a general way. It bites that the venerable technique
> of tuple sorting has lost some of its mojo. This may be
> an unintended consequence of eliminating default comparisons.
I would discourage use of the decorate/sort/undecorate pattern,
and encourage use of the key= argument. Or, if you really need
to decorate into a tuple, still pass a key= argument.
More information about the Python-Dev