Why are there no ordered dictionaries?

Fuzzyman fuzzyman at gmail.com
Fri Nov 25 03:41:36 EST 2005


Sure - that was just an example of mutating the keys list without
having direct access to it.

If keys was implemented as an object (with a ``__call__`` method) then
we could also implement sequence methods on it - making it easier to
mutate the keys/values/items directly.

All the best,

Fuzzyman
http://www.voidspace.org.uk/python/index.shtml




More information about the Python-list mailing list