MCPcopy Create free account
hub / github.com/KmBase/ScienceReading / load_module

Function load_module

embedded/site-packages/dill/session.py:329–507  ·  view source on GitHub ↗

Update the selected module (default is :py:mod:`__main__`) with the state saved at ``filename``. Restore a module to the state saved with :py:func:`dump_module`. The saved module can be :py:mod:`__main__` (e.g. an interpreter session), an imported module, or a module-type object (e.

(
    filename: Union[str, os.PathLike] = None,
    module: Optional[Union[ModuleType, str]] = None,
    **kwds
)

Source from the content-addressed store, hash-verified

source not stored for this graph (policy: none)

Callers 2

load_sessionFunction · 0.85
load_module_asdictFunction · 0.85

Calls 12

loadMethod · 0.95
UnpicklerClass · 0.90
_make_peekableFunction · 0.85
_identify_moduleFunction · 0.85
_is_imported_moduleFunction · 0.85
_restore_modulesFunction · 0.85
popMethod · 0.80
_import_moduleFunction · 0.70
openFunction · 0.50
warnMethod · 0.45
formatMethod · 0.45
closeMethod · 0.45

Tested by

no test coverage detected