3 ms·
As of Python 3.6, Dictionaries are ordered.
by rmellow 5y ago
As of Python 3.6, Dictionaries are ordered.
- H8crilA 5y agoUh, nice, didn't know. That will fix a lot of bad (nondeterministic) code out there :)
- smarnach 5y agoIt's actually as of Python (the language) 3.7. The CPython implementation of Python 3.6 already has ordered dicts as an implementation detail, but it's not part of the language in that version.