This issue tracker has been migrated to GitHub, and is currently read-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.

Author steven.daprano
Recipients mcarans, steven.daprano
Date 2021-09-03.04:44:56
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1630644296.95.0.338971052049.issue45093@roundup.psfhosted.org>
In-reply-to
Content
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))
History
Date User Action Args
2021-09-03 04:44:56steven.dapranosetrecipients: + steven.daprano, mcarans
2021-09-03 04:44:56steven.dapranosetmessageid: <1630644296.95.0.338971052049.issue45093@roundup.psfhosted.org>
2021-09-03 04:44:56steven.dapranolinkissue45093 messages
2021-09-03 04:44:56steven.dapranocreate