Kaydet (Commit) a8a3a1b7 authored tarafından Senthil Kumaran's avatar Senthil Kumaran

merge from 3.5

Issue26135 - In the tutorial section on modules, reference importlib.reload instead of imp.reload.
......@@ -117,7 +117,8 @@ use it to save typing in interactive sessions.
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:
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment