(original) (raw)

changeset: 99945:6636d688bbd3 parent: 99943:db74f3a4cbeb parent: 99944:31e6d4d25b8e user: Senthil Kumaran senthil@uthcode.com date: Sat Jan 16 18:43:57 2016 -0800 description: merge from 3.5 Issue26135 - In the tutorial section on modules, reference importlib.reload instead of imp.reload. diff -r db74f3a4cbeb -r 6636d688bbd3 Doc/tutorial/modules.rst --- a/Doc/tutorial/modules.rst Sat Jan 16 13:55:05 2016 -0800 +++ b/Doc/tutorial/modules.rst Sat Jan 16 18:43:57 2016 -0800 @@ -117,7 +117,8 @@ For efficiency reasons, each module is only imported once per interpreter session. Therefore, if you change your modules, you must restart the interpreter -- or, if it's just one module you want to test interactively, - use :func:`imp.reload`, e.g. ``import imp; imp.reload(modulename)``. + use :func:`importlib.reload`, e.g. ``import importlib; + importlib.reload(modulename)``. .. _tut-modulesasscripts: /senthil@uthcode.com