diff options
author | Robert Collins <rbtcollins@hp.com> | 2015-08-04 20:20:53 (GMT) |
---|---|---|
committer | Robert Collins <rbtcollins@hp.com> | 2015-08-04 20:20:53 (GMT) |
commit | 1ae28d2ff35caaa53aac34a064977c6c3997819f (patch) | |
tree | 2ee5aa0d10c7fcecdbddd9df915b5d4cf9b1aa23 | |
parent | 2a8911c0b7176aec2791460c9beac2bf22daa725 (diff) | |
download | cpython-1ae28d2ff35caaa53aac34a064977c6c3997819f.zip cpython-1ae28d2ff35caaa53aac34a064977c6c3997819f.tar.gz cpython-1ae28d2ff35caaa53aac34a064977c6c3997819f.tar.bz2 |
Issue #20769: Improve reload() docs. Patch by Dorian Pula.
-rw-r--r-- | Doc/library/importlib.rst | 10 | ||||
-rw-r--r-- | Misc/ACKS | 1 | ||||
-rw-r--r-- | Misc/NEWS | 2 |
3 files changed, 8 insertions, 5 deletions
diff --git a/Doc/library/importlib.rst b/Doc/library/importlib.rst index c947335..c84d2df 100644 --- a/Doc/library/importlib.rst +++ b/Doc/library/importlib.rst @@ -166,11 +166,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 @@ -1098,6 +1098,7 @@ Paul Prescod Donovan Preston Paul Price Iuliia Proskurnia +Dorian Pula Jyrki Pulliainen Steve Purcell Eduardo PĂ©rez @@ -408,6 +408,8 @@ C API 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 |