Module Expr Str Import alias FunctionDef arguments args NameParam NameParam defaults NameLoad body Expr Str Assign NameStore Dict Expr Call AttributeLoad NameLoad attr Str Lambda arguments args defaults NameLoad Expr Call AttributeLoad NameLoad attr Str NameLoad If CompareIsNot NameLoad NameLoad body Expr Call AttributeLoad NameLoad attr NameLoad Expr Call AttributeLoad AttributeLoad NameLoad attr attr Expr Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad decorator_list ClassDef bases AttributeLoad NameLoad attr body Expr Str FunctionDef arguments args NameParam NameParam defaults NameLoad body Assign AttributeStore NameLoad attr NameLoad Delete AttributeDel NameLoad attr Expr Call NameLoad NameLoad NameLoad decorator_list decorator_list
N/A N/A 
Class which mimics a module.

Needed to allow pickle to correctly resolve namespaces during IPython
sessions.
 N/A types init_fakemod_dict N/A N/A fm adict N/A None N/A N/A Initialize a FakeModule instance __dict__.

    Kept as a standalone function and not a method so the FakeModule API can
    remain basically empty.

    This should be considered for private IPython use, used in managing
    namespaces for %run.

    Parameters
    ----------

    fm : FakeModule instance

    adict : dict, optional
     N/A dct N/A N/A N/A N/A dct setdefault __nonzero__ N/A N/A N/A N/A True N/A N/A N/A dct setdefault __file__ __file__ N/A N/A adict None N/A N/A N/A N/A dct update adict N/A N/A N/A N/A fm __dict__ clear N/A N/A N/A N/A fm __dict__ update dct N/A FakeModule N/A N/A types ModuleType N/A N/A Simple class with attribute access to fake a module.

    This is not meant to replace a module, but to allow inserting a fake
    module in sys.modules so that systems which rely on run-time module
    importing (like shelve and pickle) work correctly in interactive IPython
    sessions.

    Do NOT use this code for anything other than this IPython private hack. __init__ N/A N/A self adict N/A None N/A N/A N/A self __iptmp None N/A N/A self __iptmp N/A N/A init_fakemod_dict self adict N/A N/A