According to PEP 468:
Starting in version 3.6 Python will preserve the order of keyword arguments as passed to a function. To accomplish this the coll
Regardless of what an “ordered mapping” means, as long as it’s not necessarily OrderedDict, OrderedDict’s == won’t take into account its order. Docs:
Equality tests between
OrderedDictobjects are order-sensitive and are implemented aslist(od1.items())==list(od2.items()). Equality tests betweenOrderedDictobjects and otherMappingobjects are order-insensitive like regular dictionaries. This allowsOrderedDictobjects to be substituted anywhere a regular dictionary is used.