Why are there no ordered dictionaries?
Fuzzyman
fuzzyman at gmail.com
Thu Nov 24 11:14:05 EST 2005
Bengt Richter wrote:
> On Wed, 23 Nov 2005 23:00:29 +0100, Christoph Zwerschke <cito at online.de> wrote:
>
[snip..]
> I think also that d1==d2 should effectively be implemented as d1[:] == d2[:] -- i.e, compare
> the item lists to implement comparisons.
>
IIUC then the odict effectively already does this.
All the best,
Fuzzyman
http://www.voidspace.org.uk/python/index.shtml
> Detailed requirements are most of the work ;-)
> I'm thinking now to try subclassing list in a constrained way instead of dict, but well see.
>
> Regards,
> Bengt Richter
More information about the Python-list
mailing list