FrozenDict
class samplomatic.utils.FrozenDict(*args, **kwargs)
Bases: Mapping
An immutable and hashable dictionary-like mapping.
Keys and values must be hashable. Views onto keys, items, and values are read-only and preserve insertion order. Standard operands like | are supported, but return copies when necessary.
Methods Summary
Methods Documentation
copy
get
get(k[, d]) → D[k] if k in D, else d. d defaults to None.
items
items() → a set-like object providing a view on D's items
keys
keys() → a set-like object providing a view on D's keys
values
values() → an object providing a view on D's values
Was this page helpful?
Report a bug, typo, or request content on GitHub.