Dev with Serdar
Learn coding in Python, Go and Rust from Serdar Yegulalp, software dev specialist and senior writer at InfoWorld.
Python’s new frozendict type
Overview
Only rarely do new types get added to Python. With Python 3.15, the dictionary type now has an immutable counterpart, the "frozendict". With it, you can use a dictionary in a great many more places where you previously couldn't — for instance, as a key in another dictionary! See in this video how the frozendict works, where it can benefit you, and its limits as well as its advantages.


