[Python-Dev] decorate-sort-undecorate
Neil Schemenauer
nas-python at python.ca
Tue Oct 14 12:17:56 EDT 2003
On Tue, Oct 14, 2003 at 11:09:15AM -0500, John Williams wrote:
> Why not use a special tuple type for the DSU algorithm that ignores its
> last element when doing a comparison?
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.
Neil
More information about the Python-Dev
mailing list