2 ms·
you can't do it. see the comments in the constructor for OrderedDict (if i am remembering correctly - somewhere there's something in the python source that bas
by andrewcooke 13y ago
you can't do it. see the comments in the constructor for OrderedDict (if i am remembering correctly - somewhere there's something in the python source that basically says "rats, need an ordered kwargs but that's not possible").
here you go - http://svn.python.org/view/python/trunk/Lib/collections.py?view=markup http://svn.python.org/view/python/trunk/Lib/collections.py?v... - line 32.
probably you need to pass in an OrderedDict instance.
- mtrn 13y agoYes, I thought so. Otherwise there would be much more ordered kwargs decorators or hacks floating around. Thanks for the link to the source.