3 ms·
Dict() is unordered.
by H8crilA 5y ago
Dict() is unordered.
- rmellow 5y agoAs 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.