A 'frozen' dictionary for Python

3 points by ryan-duve


I saw this announcement on Discourse which contains context and discussion and the announcement that this is implemented for 3.15: https://docs.python.org/dev/library/stdtypes.html#frozendict. The LWN article presents a good overview.

0x2ba22e11

Good. I found the absence of frozendict surprising and a little confusing because frozenset has existed approximately forever.