A RetroSearch Logo

Home - News ( United States | United Kingdom | Italy | Germany ) - Football scores

Search Query:

Showing content from https://mail.python.org/pipermail/python-dev/2003-October/038702.html below:

[Python-Dev] decorate-sort-undecorate

[Python-Dev] decorate-sort-undecorate [Python-Dev] decorate-sort-undecorateNeil 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

RetroSearch is an open source project built by @garambo | Open a GitHub Issue

Search and Browse the WWW like it's 1997 | Search results from DuckDuckGo

HTML: 3.2 | Encoding: UTF-8 | Version: 0.7.4