Hacker News
new
|
past
|
comments
|
ask
|
show
|
jobs
|
submit
login
judicious
on Sept 5, 2024
|
parent
|
context
|
favorite
| on:
Lesser known parts of Python standard library
There in lies another reason why OrderedDicts are still useful even in 3.12
rbanffy
on Sept 5, 2024
[–]
Not really. It was pointed out that since 3.7 the order preserving behaviour is part of the spec for dicts.
judicious
on Sept 5, 2024
|
parent
[–]
I guess for most purposes, OrderedDicts are then obsolete, but I believe there are some extra convenience methods that they have, but I've only really needed to preserve order.
Makes you think what other parts of Python have become obsolete.
Guidelines
|
FAQ
|
Lists
|
API
|
Security
|
Legal
|
Apply to YC
|
Contact
Search: