by pphysch · 3y ago · 0 comments
Two dicts with same elements not being equal would be surprising and confusing.
I'd use an `OrderedDict` in situations where I have a mapping where the order of elements is significant. `OrderedDict` signals intent much more clearly, and its `__eq__` method cares about order.