If dict remembers the order of elements in Python3.6+, why do you need collections.OrderedDict
anymore?
That's why:
OrderedDict(a=1, b=2) == OrderedDict(b=2, a=1)
False
dict(a=1, b=2) == dict(b=2, a=1)
True
Do we need OrderedDict in python 3.6+?
If dict remembers the order of elements in Python3.6+, why do you need collections.OrderedDict
anymore?
That's why:
OrderedDict(a=1, b=2) == OrderedDict(b=2, a=1)
False
dict(a=1, b=2) == dict(b=2, a=1)
True