Bug report
Bug description:
Is this expected behavior?
d = {}
d["a"] = d
d2 = {}
d2["a"] = d2
d == d2
Error:
Traceback (most recent call last):
File "<stdin>", line 1, in <module>
RecursionError: maximum recursion depth exceeded in comparison
CPython versions tested on:
3.12
Operating systems tested on:
macOS