Python Gains frozendict and Other Python News for March 2026 - Real Python
Briefly

Python Gains frozendict and Other Python News for March 2026 - Real Python
"PEP 814, authored by Victor Stinner and Donghee, brings an immutable, hashable dictionary as a built-in type in Python 3.15. It's one of those additions that feels overdue, and the frozenset-to-set analogy makes it immediately intuitive. This addition addresses years of community requests for a frozendict implementation."
"PEP 798 is the kind of quality-of-life improvement that makes you smile. It lets you flatten or merge collections directly in a comprehension: No more writing explicit loops just to concatenate a list of lists. This enhancement simplifies common data manipulation patterns in Python code."
"The JIT compiler continues to show gains: 3-4% on x86-64 Linux over the standard interpreter and 7-8% on AArch64 macOS over the tail-calling interpreter, matching the numbers from alpha 5. These performance improvements demonstrate ongoing optimization efforts in Python's execution engine."
Python's Steering Council approved PEP 814 in February, adding frozendict as a built-in type in Python 3.15. This immutable, hashable dictionary addresses a long-standing community request. Python 3.15.0 Alpha 6 released on February 11 includes PEP 798, enabling collection flattening and merging directly in comprehensions. The JIT compiler shows continued performance improvements of 3-4% on x86-64 Linux and 7-8% on AArch64 macOS. Maintenance releases Python 3.14.3 and 3.13.12 delivered approximately 300 and 240 bug fixes respectively. The beta phase begins May 5, with Alpha 7 scheduled for March 10.
Read at Realpython
Unable to calculate read time
[
|
]