Mercurial > cpython-lru_cache-weakref
diff Doc/tutorial/modules.rst @ 46786:ccc337b45b2e legacy-trunk
Add a note about using reload().
| author | Georg Brandl <georg@python.org> |
|---|---|
| date | Fri, 09 May 2008 06:39:58 +0000 |
| parents | 3625234bf3d2 |
| children | fb14ff057c09 |
line wrap: on
line diff
--- a/Doc/tutorial/modules.rst Fri May 09 06:36:07 2008 +0000 +++ b/Doc/tutorial/modules.rst Fri May 09 06:39:58 2008 +0000 @@ -103,6 +103,13 @@ 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:
