hot reloading / swapping with Python [duplicate]
问题 This question already has an answer here: How do I unload (reload) a module? 18 answers I want code changes to take effect immediately during development. How can I detect changed files and reload them in the running Python (2.7) application? Edit: After reading the pages linked by 'Ivo van der Wijk', I think it would be best to restart the web application when code changes - like Django does. So the actual question is: How to monitor file modifications? 回答1: This question has been asked a