Message400977
What is your use-case for having dicts that differ only in order compare unequal?
I can't think of any reason why I would want such a comparison, but if I did, it's a trivial one-liner:
d1 == d2 and all(k1 == k2 for k1, k2 in zip(d1, d2)) |
|
Date |
User |
Action |
Args |
2021-09-03 04:44:56 | steven.daprano | set | recipients:
+ steven.daprano, mcarans |
2021-09-03 04:44:56 | steven.daprano | set | messageid: <1630644296.95.0.338971052049.issue45093@roundup.psfhosted.org> |
2021-09-03 04:44:56 | steven.daprano | link | issue45093 messages |
2021-09-03 04:44:56 | steven.daprano | create | |
|