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
2018-02-01
foo
from importlib import reload
reload(foo)
31.5. importlib — The implementation of import — Python 3.6.4 documentation