easybuild.base.frozendict module

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.

class easybuild.base.frozendict.FrozenDict(*args, **kwargs)

Bases: collections.abc.Mapping

keys() → a set-like object providing a view on D's keys
class easybuild.base.frozendict.FrozenDictKnownKeys(*args, **kwargs)

Bases: easybuild.base.frozendict.FrozenDict

A frozen dictionary only allowing known keys.