forces new code to load/run changer printer(runs the new version now reloadedafter editing notice that reload actually returns the module object for us--its result is usually ignoredbut because expression results are printed at the interactive promptpython shows default representation two final notes herefirstif you use reloadyou'll probably want to pair it with import instead of fromas the latter isn' updated by reload operations--leaving your names in state that' strange enough to warrant postponing further elaboration until this part' "gotchasat the end of secondreload by itself updates only single modulebut it' straightforward to code function that applies it transitively to related modules--an extension we'll save for case study near the end of why you will caremodule reloads besides allowing you to reload (and hence rerunmodules at the interactive promptmodule reloads are also useful in larger systemsespecially when the cost of restarting the entire application is prohibitive for instancegame servers and systems that must connect to servers over network on startup are prime candidates for dynamic reloads they're also useful in gui work ( widget' callback action can be changed while the gui remains active)and when python is used as an embedded language in or cprogram (the enclosing program can request reload of the python code it runswithout having to stopsee programming python for more on reloading gui callbacks and embedded python code more generallyreloads allow programs to provide highly dynamic interfaces for instancepython is often used as customization language for larger systems--users can customize products by coding bits of python code onsitewithout having to recompile the entire product (or even having its source code at allin such worldsthe python code already adds dynamic flavor by itself to be even more dynamicthoughsuch systems can automatically reload the python customization code periodically at runtime that wayuserschanges are picked up while the system is runningthere is no need to stop and restart each time the python code is modified not all systems require such dynamic approachbut for those that domodule reloads provide an easy-to-use dynamic customization tool summary this delved into the essentials of module coding tools--the import and from statementsand the reload call we learned how the from statement simply adds an extra step that copies names out of file after it has been importedand how reload forces file to be imported again without stopping and restarting python we also surveyed namespace conceptssaw what happens when imports are nestedexplored summary