

def init_fakemod_dict(fm, adict=None):
    'Initialize a FakeModule instance __dict__.\n\n    Kept as a standalone function and not a method so the FakeModule API can\n    remain basically empty.\n\n    This should be considered for private IPython use, used in managing\n    namespaces for %run.\n\n    Parameters\n    ----------\n\n    fm : FakeModule instance\n\n    adict : dict, optional\n    '
    dct = {
        
    }
    dct.setdefault('__nonzero__', (lambda : True))
    dct.setdefault('__file__', __file__)
    if (adict is not None):
        dct.update(adict)
    fm.__dict__.clear()
    fm.__dict__.update(fm)

dataset/ETHPy150Open ipython/ipython-py3k/IPython/core/fakemodule.py init_fakemod_dict/VarMisuse@77/226 `dct`->`fm`