Hashable mappings
Hashable mappings
Posted Dec 6, 2025 5:02 UTC (Sat) by NYKevin (subscriber, #129325)In reply to: Hashable mappings by AdamW
Parent article: A "frozen" dictionary for Python
They are "not really the same" in the sense that, if you iterate over them, you'll observe two different orders. In all other respects, they're functionally identical.
Whether this is a problem is debatable, but it is also moot. Non-frozen dicts have behaved this way forever, so making frozendict behave differently would be pretty terrible language design.
