# Bug report ### Bug description: As far as I know, the expectation is `a == b => hash(a) == hash(b)`, but currently, the following code fails: ```py a = frozendict({"a": 1}) b = frozendict({"b": 2}) c = frozendict({"a": 1, "b": 2}) c_union = a | b assert c == c_union assert hash(c) == hash(c_union) ``` with ``` File "t.py", line 8, in <module> assert hash(c) == hash(c_union) ^^^^^^^^^^^^^^^^^^^^^^^^ AssertionError ``` I have a fix ready in https://github.com/python/cpython/pull/149675. ### CPython versions tested on: 3.15 ### Operating systems tested on: macOS <!-- gh-linked-prs --> ### Linked PRs * gh-149675 * gh-149717 <!-- /gh-linked-prs -->
Bug report
Bug description:
As far as I know, the expectation is
a == b => hash(a) == hash(b), but currently, the following code fails:with
I have a fix ready in #149675.
CPython versions tested on:
3.15
Operating systems tested on:
macOS
Linked PRs
frozendicthash value #149675