(original) (raw)

changeset: 99944:31e6d4d25b8e branch: 3.5 parent: 99942:daa6fdaf9835 user: Senthil Kumaran senthil@uthcode.com date: Sat Jan 16 18:43:24 2016 -0800 files: Doc/tutorial/modules.rst description: Issue26135 - In the tutorial section on modules, reference importlib.reload instead of imp.reload. diff -r daa6fdaf9835 -r 31e6d4d25b8e Doc/tutorial/modules.rst --- a/Doc/tutorial/modules.rst Sat Jan 16 13:54:53 2016 -0800 +++ b/Doc/tutorial/modules.rst Sat Jan 16 18:43:24 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