Hashable mappings
Hashable mappings
Posted Dec 6, 2025 0:49 UTC (Sat) by AdamW (subscriber, #48457)In reply to: Hashable mappings by iabervon
Parent article: A "frozen" dictionary for Python
Huh. I just read the PEP, and that's in interesting detail.
It says frozendicts will be ordered, but hashes and comparisons will not care about the order.
So frozendict({"a": "b", "c": "d"}) and frozendict({"c": "d", "a": "b"}) will have the same hash and compare as equal, but they're not really the same?
I don't know how I feel about that!
