How to add an element to the beginning of an OrderedDict?
I have this:
d1 = OrderedDict([('a', '1'), ('b', '2')])
If I do this:
d1.update({'c':'3'})
Then I get this:
OrderedDict([('a', '1'), ('b', '2'), ('c', '3')])
but I want this:
[('c', '3'), ('..