I\'m currently playing with Flask and I can\'t figure out how the debug mechanism is working. To be more precise when I save the python file with my application I don\'t need to
The built-in reload() function can do this for you. It's likely that this function is behind what Flask does to reload code (after noticing that it has changed on disk in some way).
The question How do I unload (reload) a Python module? has more information on this.