Post

`frozendict` has officially been accepted as part of #Python 3.15! discuss.python.org/t/pep-814-ad...

discuss.python.orgPEP 814: Add frozendict built-in typeAfter careful deliberation, the Python Steering Council is pleased to accept PEP 814 – Add frozendict built-in type. The absence of an immutable dict counterpart has been a long-standing gap in Pytho...
Joseph Hale@thehale.dev

Looks like #Python 3.15 will include a built-in, immutable `frozendict` type. "Using an immutable mapping as a function parameter’s default value avoids the problem of mutable default values." There are other benefits too (e.g. `frozendict`s are hashable).

0 reposts1 like

No replies yet.