Is there a OrderedDict which can perform an iteritems() in order?
vlastimil.brom at gmail.com
Thu Nov 4 10:49:29 CET 2010
2010/11/4 Jo Chan <csjcg2 at gmail.com>:
> Hello all,
> I have working on a program which need a ordered dictionary that could
> perform iteritems() sequentially.
> I found a package on
> : http://www.voidspace.org.uk/python/odict.html#creating-an-ordered-dictionary
> but it could only perform items() in order, but iteritems()...
> Would you help me here?
it seems the standard library implementation in collections
(OrderedDict) has the iteritems() method (checked on python 2.7). Does
it not work the way you need?
More information about the Python-list