[Python-Dev] decorate-sort-undecorate

Tim Peters tim.one at comcast.net
Tue Oct 14 15:12:37 EDT 2003

[Neil Schemenauer]
> Clever idea I think.  You don't need a special tuple, just a little
> wrapper object that holds the key and the original value and uses
> the key for tp_richcompare.

That could work well.  If a comparison function was specified too, it would
only see the key (addressing one of Raymond's concerns).

More information about the Python-Dev mailing list