Hacker News
new
|
past
|
comments
|
ask
|
show
|
jobs
|
submit
login
ak217
on Sept 9, 2016
|
parent
|
context
|
favorite
| on:
Python 3.6 dict becomes compact and keywords becom...
The point OP is making is that none of these statements will guarantee the order of insertion, since OrderedDict must take the variadic kwargs input as a dict, which is inherently unordered. You have to use a list of tuples.
coldtea
on Sept 9, 2016
[–]
Yes, agree, just wanted to give the correct Python for the (still) ill attempt at traversing OrderedDict keys in order.
Guidelines
|
FAQ
|
Lists
|
API
|
Security
|
Legal
|
Apply to YC
|
Contact
Search: