Hacker News new | ask | show | jobs
by sixdimensional 511 days ago
Not sure about the previous post, but also python’s OrderedDict collection guarantees order-sensitive equality checks. [1]

Plain dict maintains insertion order but equality checks only check that the key/value pairs are the same. [2] [3]

[1] https://docs.python.org/3/library/collections.html#:~:text=e...

[2] https://docs.python.org/3/library/stdtypes.html#:~:text=dict...

[3] https://docs.python.org/3/library/stdtypes.html#:~:text=dict...