

def __init__(self, default_factory=None, *a, **kw):
    if ((default_factory is not None) and (not hasattr(default_factory, '__call__'))):
        raise TypeError('first argument must be callable')
    dict.__init__(self, *a, **kw)
    self.default_factory = default_factory

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