summaryrefslogtreecommitdiffstats
path: root/Doc/library/importlib.rst
diff options
context:
space:
mode:
authorRobert Collins <rbtcollins@hp.com>2015-08-04 20:28:53 (GMT)
committerRobert Collins <rbtcollins@hp.com>2015-08-04 20:28:53 (GMT)
commitb3ca31f5f1ba51173d4b920ab5f423c63169d830 (patch)
tree3e11da0d983ef73b0ebbecb60959581a37c9828b /Doc/library/importlib.rst
parent78c89eb0aceeeaf67f537b8f6df8a3640acf4151 (diff)
parent1ae28d2ff35caaa53aac34a064977c6c3997819f (diff)
downloadcpython-b3ca31f5f1ba51173d4b920ab5f423c63169d830.zip
cpython-b3ca31f5f1ba51173d4b920ab5f423c63169d830.tar.gz
cpython-b3ca31f5f1ba51173d4b920ab5f423c63169d830.tar.bz2
Issue #20769: Improve reload() docs. Patch by Dorian Pula.
Diffstat (limited to 'Doc/library/importlib.rst')
-rw-r--r--Doc/library/importlib.rst10
1 files changed, 5 insertions, 5 deletions
diff --git a/Doc/library/importlib.rst b/Doc/library/importlib.rst
index 771c4c5..632df75 100644
--- a/Doc/library/importlib.rst
+++ b/Doc/library/importlib.rst
@@ -179,11 +179,11 @@ Functions
except NameError:
cache = {}
- It is legal though generally not very useful to reload built-in or
- dynamically loaded modules (this is not true for e.g. :mod:`sys`,
- :mod:`__main__`, :mod:`builtins` and other key modules where reloading is
- frowned upon). In many cases, however, extension modules are not designed to
- be initialized more than once, and may fail in arbitrary ways when reloaded.
+ It is generally not very useful to reload built-in or dynamically loaded
+ modules. Reloading :mod:`sys`, :mod:`__main__`, :mod:`builtins` and other
+ key modules is not recommended. In many cases extension modules are not
+ designed to be initialized more than once, and may fail in arbitrary ways
+ when reloaded.
If a module imports objects from another module using :keyword:`from` ...
:keyword:`import` ..., calling :func:`reload` for the other module does not