MCPcopy Create free account
hub / github.com/cloudpipe/cloudpickle / dynamic_subimport

Function dynamic_subimport

cloudpickle/cloudpickle.py:480–484  ·  view source on GitHub ↗
(name, vars)

Source from the content-addressed store, hash-verified

478
479
480def dynamic_subimport(name, vars):
481 mod = types.ModuleType(name)
482 mod.__dict__.update(vars)
483 mod.__dict__["__builtins__"] = builtins.__dict__
484 return mod
485
486
487def _get_cell_contents(cell):

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected