summaryrefslogtreecommitdiffstats
path: root/Doc/tutorial
diff options
context:
space:
mode:
authorGeorg Brandl <georg@python.org>2008-05-09 06:39:58 (GMT)
committerGeorg Brandl <georg@python.org>2008-05-09 06:39:58 (GMT)
commit68fd63ba9ad7d7677edcdf6d9d115e7bf830028d (patch)
tree3182b2a179e7e63c9e059f7d7ffd426a88237344 /Doc/tutorial
parent2e829cb7690c765f0de68fadfcc343535b8f609d (diff)
downloadcpython-68fd63ba9ad7d7677edcdf6d9d115e7bf830028d.zip
cpython-68fd63ba9ad7d7677edcdf6d9d115e7bf830028d.tar.gz
cpython-68fd63ba9ad7d7677edcdf6d9d115e7bf830028d.tar.bz2
Add a note about using reload().
Diffstat (limited to 'Doc/tutorial')
-rw-r--r--Doc/tutorial/modules.rst7
1 files changed, 7 insertions, 0 deletions
diff --git a/Doc/tutorial/modules.rst b/Doc/tutorial/modules.rst
index 6e45f64..975e13e 100644
--- a/Doc/tutorial/modules.rst
+++ b/Doc/tutorial/modules.rst
@@ -103,6 +103,13 @@ There is even a variant to import all names that a module defines::
This imports all names except those beginning with an underscore (``_``).
+.. note::
+
+ 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:`reload`, e.g. ``reload('modulename')``.
+
.. _tut-modulesasscripts: