

def __missing__(self, key):
    if (self.default_factory is None):
        raise KeyError(key)
    self[key] = value = self.default_factory()
    return value

dataset/ETHPy150Open packages/psutil/psutil/_compat.py defaultdict.__missing__/original