Hacker News
new
|
past
|
comments
|
ask
|
show
|
jobs
|
submit
login
yes_or_gnome
on Sept 9, 2016
|
parent
|
context
|
favorite
| on:
Python 3.6 dict becomes compact and keywords becom...
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:
But, as the other commenter mentioned, a list of 2-tuples is the safe bet.