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/038725.html below:

[Python-Dev] decorate-sort-undecorate

[Python-Dev] decorate-sort-undecorate [Python-Dev] decorate-sort-undecorateRaymond Hettinger python at rcn.com
Tue Oct 14 15:39:27 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).

Don't you still need a tie-breaker index to preserve stability?


Raymond Hettinger


#################################################################
#################################################################
#################################################################
#####
#####
#####
#################################################################
#################################################################
#################################################################

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