PEP 841 – Adding Frozen Syntax to Optimize Immutable Types | peps.python.org
This PEP proposes frozen display syntax: f{1, 2, 3} evaluates to a frozenset, and f{'a': 1} evaluates to a frozendict. Because immutability is guaranteed by the syntax itself rather than inferred from usage, the compiler can treat frozen displays as fir...
Python Enhancement Proposals (PEPs)