Why are there no ordered dictionaries?

Nicola Larosa nico-NoSp at m-tekNico.net
Sun Nov 20 10:07:42 EST 2005


> You asked "why not" rather than "has anyone done this anyway"; if
> you asked the latter of the Python Cookbook, you might find something
> like this:
> 
>     <URL:http://aspn.activestate.com/ASPN/Cookbook/Python/Recipe/107747>
> 
> A little old, and pre-dates subclassable native types, but quite
> serviceable.

Here's a more recent and tested one, by yours truly (and Michael Foord):

An Ordered Dictionary
http://www.voidspace.org.uk/python/odict.html

-- 
Nicola Larosa - nico-NoSp at m-tekNico.net

How wonderful the world would be if his behaviour and attitude was the
default among rich people - using his money with a vision to improve the
world, instead of getting 8 sportcars and a larger penis.
 -- barkholt on Slashdot, October 2005, referring to Mark Shuttleworth



More information about the Python-list mailing list