Tech Insights· nedbatchelder.com
Ordered dict surprises:
From nedbatchelder.com
Since Python 3.6, regular dictionaries retain their insertion order: when you iterate over a dict, you get the items in the same order they were added to the dict. Before 3.6, dicts were unordered: the iteration order was seemingly random.
Shared by
- Python



