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

Method import_module

Lib/test/support/hashlib_helper.py:133–139  ·  view source on GitHub ↗

Import the described module. If *strict* is true, an ImportError may be raised if importing fails, otherwise, None is returned on error.

(self, *, strict=False)

Source from the content-addressed store, hash-verified

131 self.member_name = member_name
132
133 def import_module(self, *, strict=False):
134 """Import the described module.
135
136 If *strict* is true, an ImportError may be raised if importing fails,
137 otherwise, None is returned on error.
138 """
139 return _import_module(self.module_name, strict=strict)
140
141 def import_member(self, *, strict=False):
142 """Import the described member.

Callers 15

_get_sysconfigdataFunction · 0.45
test_wmi.pyFile · 0.45
test_xxtestfuzz.pyFile · 0.45
test_import_moduleFunction · 0.45
test_half_floatMethod · 0.45
test_syslog.pyFile · 0.45
set_breakMethod · 0.45
test_dbm_ndbm.pyFile · 0.45
test_name_resolutionMethod · 0.45

Calls 1

_import_moduleFunction · 0.85