that use import qualify to fetch attributesthey'll find new values in the module object after reload reloads impact future from clients only clients that used from to fetch attributes in the past won' be affected by reloadthey'll still have references to the old objects fetched before the reload reloads apply to single module only you must run them on each module you wish to updateunless you use code or tools that apply reloads transitively reload example to demonstratehere' more concrete example of reload in action in the followingwe'll change and reload module file without stopping the interactive python session reloads are used in many other scenariostoo (see the sidebar "why you will caremodule reloadson page )but we'll keep things simple for illustration here firstin the text editor of your choicewrite module file named changer py with the following contentsmessage "first versiondef printer()print(messagethis module creates and exports two names--one bound to stringand another to function nowstart the python interpreterimport the moduleand call the function it exports the function will print the value of the global message variablepython import changer changer printer(first version keeping the interpreter activenow edit the module file in another windowmodify changer py without stopping python notepad changer py change the global message variableas well as the printer function bodymessage "after editingdef printer()print('reloaded:'messagethenreturn to the python window and reload the module to fetch the new code notice in the following interaction that importing the module again has no effectwe get the original messageeven though the file' been changed we have to call reload in order to get the new versionback to the python interpreter import changer changer printer(first version from imp import reload module coding basics no effectuses loaded module