Message178570
No, there's a bug in your code:
"""
nest_variables(collections.OrderedDict({'foo.bar': '1', 'foo': '2'}))
"""
You pass the OrderedDict *and already constructed dict*, so entries are inserted in a random order.
Just use this and it'll work properly:
"""
nest_variables(collections.OrderedDict(('foo.bar', '1'), ('foo', '2')))
""" |
|
Date |
User |
Action |
Args |
2012-12-30 12:15:31 | neologix | set | recipients:
+ neologix, benjamin.peterson, iElectric |
2012-12-30 12:15:31 | neologix | set | messageid: <1356869731.61.0.592128149817.issue16816@psf.upfronthosting.co.za> |
2012-12-30 12:15:31 | neologix | link | issue16816 messages |
2012-12-30 12:15:31 | neologix | create | |
|