moliware/dicts — Issue #6: iteration
Author: ponty
Created: 2011-10-18 07:44:58+00:00
State: open

example:

from dicts import KeySortedDict

d1=dict(a=1)
d2=KeySortedDict(d1)
print [x for x in d1]
print [x for x in d2]

result:

['a']
[('a', 1)]

they should be the same