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/2008-June/080403.html below:

[Python-Dev] Proposal: add odict to collections

[Python-Dev] Proposal: add odict to collections [Python-Dev] Proposal: add odict to collections"Martin v. Löwis" martin at v.loewis.de
Sun Jun 15 06:55:22 CEST 2008
> Have the comparison function passed in as a parameter then, if it's
> None, then have it maintain the order of insertion?

No. This would contribute to the confusion, not resolve it. If it's
called "ordered dictionary", it shouldn't do sorting at all. If it does
sorting, it should be called "sorted dictionary", and mandate a
comparison function (which might default to cmp).

Regards,
Martin
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