Python sets, frozensets, and literals
Python sets, frozensets, and literals
[Development] Posted Jan 18, 2022 23:33 UTC (Tue) by jake
A Python "frozenset" is simply a set object that is immutable—the objects it contains are determined at initialization time and cannot be changed thereafter. Like sets, frozensets are built into the language, but unlike most of the other standard Python types, there is no way to create a literal frozenset object. Changing that, by providing a mechanism to do so, was the topic of a recent discussion on the python-ideas mailing list.
