ID EN
Collections

__missing__

Python 3.11

If the default_factory attribute is None, this raises a KeyError exception with the key as argument.

Syntax

PYTHON
__missing__(key)

See Also

default_factory KeyError default_factory default_factory __getitem__() dict __getitem__() __missing__()