[issue43691] Comparison of OrderedDict() and dict()
Raymond Hettinger
report at bugs.python.org
Thu Apr 1 12:59:51 EDT 2021
Raymond Hettinger <raymond.hettinger at gmail.com> added the comment:
Unfortunately, the existing behaviors are guaranteed and cannot be changing without breaking code — the OrderedDict class was designed to be mostly substitutable for regular dicts in existing code.
Personally, I think it would have been better if OrderedDict equality always worked the same way a dict equality, but I was overruled and that ship sailed long ago. It is what it is.
----------
nosy: +rhettinger
resolution: -> not a bug
stage: -> resolved
status: open -> closed
_______________________________________
Python tracker <report at bugs.python.org>
<https://bugs.python.org/issue43691>
_______________________________________
More information about the Python-bugs-list
mailing list