Answers for "reload module"

0

reload module

from importlib import reload  # Python 3.4+
import foo

while True:
    # Do some things.
    if is_changed(foo):
        foo = reload(foo)
Posted by: Guest on October-28-2021

Browse Popular Code Answers by Language