MCPcopy Index your code
hub / github.com/python/cpython / read_module

Method read_module

Lib/optparse.py:862–865  ·  view source on GitHub ↗
(self, modname, mode="careful")

Source from the content-addressed store, hash-verified

860 raise ValueError("invalid update mode: %r" % mode)
861
862 def read_module(self, modname, mode="careful"):
863 __import__(modname)
864 mod = sys.modules[modname]
865 self._update(vars(mod), mode)
866
867 def read_file(self, filename, mode="careful"):
868 vars = {}

Callers

nothing calls this directly

Calls 2

_updateMethod · 0.95
__import__Function · 0.85

Tested by

no test coverage detected