Reuven M. Lerner @lernerpython.com · 6d

Old #Python: from collections import OrderedDict New Python: d = {} # already ordered Since 3.7, regular dicts keep insertion order as a language guarantee. You rarely need OrderedDict now. Want more? My "python --update" course starts July 21: buff.ly/y3YiRyy

3 likes 1 replies

?

Replies

bjkeefe · 6d

May have said this before, but I remember when I first started learning Python that his was so new that I felt compelled to put giant warnings in comments in my code where I used the new assumption.