Things on this page are fragmentary and immature notes/thoughts of the author. Please read with your own judgement!
In [1]:
pip3 install deepdiff
In [2]:
from deepdiff import DeepDiff
In [3]:
t1 = {1: 1, 2: 2, 3: 3, 4: {"a": "hello", "b": [1, 2, 3]}}
t2 = {1: 1, 2: 2, 3: 3, 4: {"a": "hello", "b": [1, 3, 2, 3]}}
ddiff = DeepDiff(t1, t2, ignore_order=True)
ddiff
Out[3]:
In [4]:
True if ddiff else False
Out[4]:
References¶
In [ ]: