Y
Hacker News
new
|
ask
|
show
|
jobs
by
viraptor
2327 days ago
Using OrderedDict is actually nice in this case, even if the default dict has the same ordering. That way you're explicitly saying you rely on that behaviour and it makes reading the code easier.