changeset: 97250:cfd768814ca3 branch: 2.7 parent: 97224:0511b1165bb6 user: Robert Collins date: Wed Aug 05 08:16:41 2015 +1200 files: Doc/library/functions.rst Misc/ACKS Misc/NEWS description: Issue #20769: Improve reload() docs. Patch by Dorian Pula. diff -r 0511b1165bb6 -r cfd768814ca3 Doc/library/functions.rst --- a/Doc/library/functions.rst Mon Aug 03 18:34:07 2015 -0400 +++ b/Doc/library/functions.rst Wed Aug 05 08:16:41 2015 +1200 @@ -1191,10 +1191,11 @@ except NameError: cache = {} - It is legal though generally not very useful to reload built-in or dynamically - loaded modules, except for :mod:`sys`, :mod:`__main__` and :mod:`__builtin__`. - 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 -r 0511b1165bb6 -r cfd768814ca3 Misc/ACKS --- a/Misc/ACKS Mon Aug 03 18:34:07 2015 -0400 +++ b/Misc/ACKS Wed Aug 05 08:16:41 2015 +1200 @@ -1088,6 +1088,7 @@ Donovan Preston Paul Price Iuliia Proskurnia +Dorian Pula Jyrki Pulliainen Steve Purcell Eduardo Pérez diff -r 0511b1165bb6 -r cfd768814ca3 Misc/NEWS --- a/Misc/NEWS Mon Aug 03 18:34:07 2015 -0400 +++ b/Misc/NEWS Wed Aug 05 08:16:41 2015 +1200 @@ -142,6 +142,8 @@ Documentation ------------- +- Issue #20769: Improve reload() docs. Patch by Dorian Pula. + - Issue #23589: Remove duplicate sentence from the FAQ. Patch by Yongzhi Pan. - Issue #22155: Add File Handlers subsection with createfilehandler to Tkinter