importlib.reload: Reimporting a Python module during development

importlib.reload: Reimporting a Python module during development

Once you import a Python module, a second import won’t reload it.

That’s usually good. But what if you want to? (Common in development and debuggin.)

from importlib import reload
reload(mymod)

This forces the reload.