Steven D'Aprano <steve+pyt...@pearwood.info> added the comment:

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))

----------
nosy: +steven.daprano
type: behavior -> enhancement

_______________________________________
Python tracker <rep...@bugs.python.org>
<https://bugs.python.org/issue45093>
_______________________________________
_______________________________________________
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com

Reply via email to