Is there such a thing as an ordered dict?
David Eppstein
eppstein at ics.uci.edu
Fri May 10 10:28:12 EDT 2002
More information about the Python-list mailing list
Fri May 10 10:28:12 EDT 2002
- Previous message (by thread): Is there such a thing as an ordered dict?
- Next message (by thread): Can string format operator help me?
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
In article <m3offobj2w.fsf at mira.informatik.hu-berlin.de>, martin at v.loewis.de (Martin v. Loewis) wrote: > Ask Google: > > http://www.google.de/search?q=Python+ordered+dictionary > > The first hit gives > > http://aspn.activestate.com/ASPN/Cookbook/Python/Recipe/107747 This orders the dictionary entries by their keys. If you want to order entries by their values, my recipe http://aspn.activestate.com/ASPN/Cookbook/Python/Recipe/117228 may be appropriate. -- David Eppstein UC Irvine Dept. of Information & Computer Science eppstein at ics.uci.edu http://www.ics.uci.edu/~eppstein/
- Previous message (by thread): Is there such a thing as an ordered dict?
- Next message (by thread): Can string format operator help me?
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
More information about the Python-list mailing list