mirror of
https://github.com/python/cpython.git
synced 2025-08-01 15:43:13 +00:00
Add a note about using reload().
This commit is contained in:
parent
2e829cb769
commit
68fd63ba9a
1 changed files with 7 additions and 0 deletions
|
@ -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:
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue