I've read this post How to call a function from another file in Python to see how a function can be loaded from another file. I have production code that runs all day and I want to be able to change only one function in that code to test/change output. I don't want to restart the program each time I need to verify my changes were successful.
Is there a mechanism to load the function each time it's called instead of importing the function at the beginning of the program and using the same code throughout the life of that particular instance? I moved the import
statement from the beginning of the program into a loop, and the same output is observed no matter how much I change the function in the accompanying file.
A similar analogy would be HTML and CSS styling. I can have separate files there and change the CSS to change the output of the HTML without actually touching the HTML.