This issue tracker has been migrated to GitHub, and is currently read-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.

Author neologix
Recipients benjamin.peterson, iElectric, neologix
Date 2012-12-30.12:15:31
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1356869731.61.0.592128149817.issue16816@psf.upfronthosting.co.za>
In-reply-to
Content
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')))
"""
History
Date User Action Args
2012-12-30 12:15:31neologixsetrecipients: + neologix, benjamin.peterson, iElectric
2012-12-30 12:15:31neologixsetmessageid: <1356869731.61.0.592128149817.issue16816@psf.upfronthosting.co.za>
2012-12-30 12:15:31neologixlinkissue16816 messages
2012-12-30 12:15:31neologixcreate