[Python-checkins] cpython (3.4): Issue #20769: Improve reload() docs. Patch by Dorian Pula.
robert.collins
python-checkins at python.org
Tue Aug 4 22:32:37 CEST 2015
https://hg.python.org/cpython/rev/33dfbb293892
changeset: 97251:33dfbb293892
branch: 3.4
parent: 97247:99550a01fa6e
user: Robert Collins <rbtcollins at hp.com>
date: Wed Aug 05 08:20:53 2015 +1200
summary:
Issue #20769: Improve reload() docs. Patch by Dorian Pula.
files:
Doc/library/importlib.rst | 10 +++++-----
Misc/ACKS | 1 +
Misc/NEWS | 2 ++
3 files changed, 8 insertions(+), 5 deletions(-)
diff --git a/Doc/library/importlib.rst b/Doc/library/importlib.rst
--- a/Doc/library/importlib.rst
+++ b/Doc/library/importlib.rst
@@ -166,11 +166,11 @@
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
diff --git a/Misc/ACKS b/Misc/ACKS
--- a/Misc/ACKS
+++ b/Misc/ACKS
@@ -1098,6 +1098,7 @@
Donovan Preston
Paul Price
Iuliia Proskurnia
+Dorian Pula
Jyrki Pulliainen
Steve Purcell
Eduardo Pérez
diff --git a/Misc/NEWS b/Misc/NEWS
--- a/Misc/NEWS
+++ b/Misc/NEWS
@@ -408,6 +408,8 @@
Documentation
-------------
+- Issue #20769: Improve reload() docs. Patch by Dorian Pula.
+
- Issue #23589: Remove duplicate sentence from the FAQ. Patch by Yongzhi Pan.
- Issue #24729: Correct IO tutorial to match implementation regarding
--
Repository URL: https://hg.python.org/cpython
More information about the Python-checkins
mailing list