PyDocs

Nav

Development Tools

import_fresh_module

test.support.import_helper

function · Added in 3.1
  • import_fresh_module(name, fresh=(), blocked=(), deprecated=False)
This function imports and returns a fresh copy of the named Python module by removing the named module from sys.modules before doing the import. Note that unlike importlib.reload(), the original module is not affected by this operation.
0 Examples
No examples for test.support.import_helper/import_fresh_module.
See Also
No see-alsos for test.support.import_helper/import_fresh_module
0 Notes
No notes for import_fresh_module