Hacker Newsnew | past | comments | ask | show | jobs | submitlogin

In 3.6, this will be ordered. Python creates a dict out of the keywords arguments, so before 3.6, this creates the old hash-ordered dict which is covered to an OrderedDict.

But, as the other commenter mentioned, a list of 2-tuples is the safe bet.



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

Search: