frozendict#

Classes#

frozendict

An immutable wrapper around dictionaries that implements the complete collections.Mapping

FrozenOrderedDict

A frozendict subclass that maintains key order

Attributes#

deprecated

OrderedDict

iteritems

deprecated#
OrderedDict#
iteritems#
class frozendict(*args, **kwargs)#

Bases: collections.abc.Mapping

An immutable wrapper around dictionaries that implements the complete collections.Mapping interface. It can be used as a drop-in replacement for dictionaries where immutability is desired.

dict_cls#
__getitem__(key)#
__contains__(key)#
copy(**add_or_replace)#
__iter__()#
__len__()#
__repr__()#

Return repr(self).

__hash__()#

Return hash(self).

__json__()#
to_json()#
class FrozenOrderedDict(*args, **kwargs)#

Bases: frozendict

A frozendict subclass that maintains key order

dict_cls#