Hacker News new | past | comments | ask | show | jobs | submit login

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?v... - line 32.

probably you need to pass in an OrderedDict instance.




Yes, I thought so. Otherwise there would be much more ordered kwargs decorators or hacks floating around. Thanks for the link to the source.




Join us for AI Startup School this June 16-17 in San Francisco!

Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: