Immutable data makes concurrent access easier, since it eliminates the data-race conditions that can plague multithreaded programs. At PyCon 2024, Yury Selivanov introduced an early-stage project ...
Python 3.15 introduces an immutable or ‘frozen’ dictionary that is useful in places ordinary dicts can’t be used. Only very rarely does Python add a new standard data type. Python 3.15, when it’s ...
The idea is fairly straightforward: add frozendict as a new immutable type to the language's builtins module. As Stinner put it: We expect frozendict to be safe by design, as it prevents any ...