Y
Hacker News
new
|
ask
|
show
|
jobs
by
amelius
2737 days ago
> Dicts now retain order now (in other words all dicts are ordered dicts).
I think you can be more clear here: all dicts are ordered by insertion order (not by key).
1 comments
b_tterc_p
2737 days ago
Fair. I was referring to the precious data structure for this use case, collections.OrderedDict but that’s not self evident if you’re not familiar.
link