parameters: (old)
return_statement: return new
docstring: Recompiles and creates new module object.
docstring_summary: Recompiles and creates new module object.
docstring_tokens: Recompiles and creates new module object .
function: def CopyModule(old):
    """Recompiles and creates new module object."""
    saved = sys.modules.pop(old.__name__, None)
    new = __import__(old.__name__)
    sys.modules[old.__name__] = saved
    return new
function_tokens: def CopyModule ( old ) : saved = sys . modules . pop ( old . __name__ , None ) new = __import__ ( old . __name__ ) sys . modules [ old . __name__ ] = saved return new