Why are there no ordered dictionaries?
drochom at WYTNIJ.hyene.com
Sun Nov 20 14:22:15 CET 2005
Uzytkownik "Christoph Zwerschke" <cito at online.de> napisal w wiadomosci
news:dlpr88$ts6$1 at online.de...
> This is probably a FAQ, but I dare to ask it nevertheless since I
> haven't found a satisfying answer yet: Why isn't there an "ordered
> dictionary" class at least in the standard list? Time and again I am
> missing that feature. Maybe there is something wrong with my programming
> style, but I rather think it is generally useful.
> I fully agree with the following posting where somebody complains why so
> very basic and useful things are not part of the standard library:
> Are there plans to get it into the standard lib sometime?
> -- Christoph
i am not sure what is the purpose of having ordered dictionaries built in
python, could u provide any examples?
i use a contruction:
for x in sorted(d.keys())
More information about the Python-list