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/2001-August/017146.html below:

[Python-Dev] PEP 265 - Sorting Dictionaries by Value

[Python-Dev] PEP 265 - Sorting Dictionaries by Value [Python-Dev] PEP 265 - Sorting Dictionaries by ValueSkip Montanaro skip@pobox.com (Skip Montanaro)
Mon, 20 Aug 2001 23:35:45 -0500
    Grant> ... since Python sorts the list based on the first item of the
    Grant> tuple, the list of (inverted) items is therefore sorted by value.

Well, to be picky, it uses all the elements of the tuple in the comparison,
it's just that the highest priority item is in the first slot. ;-)

Skip




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