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

Function unload

Lib/test/support/import_helper.py:33–37  ·  view source on GitHub ↗
(name)

Source from the content-addressed store, hash-verified

31
32
33def unload(name):
34 try:
35 del sys.modules[name]
36 except KeyError:
37 pass
38
39
40def forget(modname):

Callers 15

_check_moduleMethod · 0.90
_check_packageMethod · 0.90
test_file_parseMethod · 0.90
tearDownMethod · 0.90
test_double_constMethod · 0.90
test_failing_reloadMethod · 0.90
tearDownMethod · 0.90
test_trailing_slashMethod · 0.90
test_UNC_pathMethod · 0.90

Calls

no outgoing calls

Tested by 12

_check_moduleMethod · 0.72
_check_packageMethod · 0.72
test_file_parseMethod · 0.72
test_double_constMethod · 0.72
test_failing_reloadMethod · 0.72
test_trailing_slashMethod · 0.72
test_UNC_pathMethod · 0.72

Used in the wild real call sites across dependent graphs

searching dependent graphs…