frozendict is an immutable wrapper around dictionaries that implements the complete mapping interface.
It can be used as a drop-in replacement for dictionaries where immutability is desired.
FrozenDictKnownKeys
Bases: FrozenDict
A frozen dictionary only allowing known keys.
__getitem__(key, *args, **kwargs)
Redefine getitem to provide a better KeyError message.
__init__(*args, **kwargs)
Constructor, only way to define the contents.