I have a long-running Python server and would like to be able to upgrade a service without restarting the server. What\'s the best way do do this?
if foo.py
Another way could be to import the module in a function. This way when the function completes the module gets garbage collected.