PyDocs

Nav

Python Runtime Services

frozendict

builtins

class · Added in 3.15
  • frozendict(**kwargs)
  • frozendict(mapping, /, **kwargs)
  • frozendict(iterable, /, **kwargs)
frozendict() -> new empty immutable dictionary
frozendict(mapping) -> new immutable dictionary initialized from a mapping
    object's (key, value) pairs
frozendict(iterable) -> new immutable dictionary initialized as if via:
    d = {}
    for k, v in iterable:
        d[k] = v
    d = frozendict(d)
frozendict(**kwargs) -> new immutable dictionary initialized with the name=value
    pairs in the keyword argument list.  For example:  frozendict(one=1, two=2)
Members of frozendict

f

fromkeys
Create a new dictionary with keys from iterable and values set to value.
0 Examples
No examples for builtins/frozendict.
See Also
No see-alsos for builtins/frozendict
0 Notes
No notes for frozendict