Kaydet (Commit) 937f2f70 authored tarafından Robert Collins's avatar Robert Collins

Issue #20769: Improve reload() docs. Patch by Dorian Pula.

üst 1d8b7be3
......@@ -1191,10 +1191,11 @@ section.
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
......
......@@ -1088,6 +1088,7 @@ Paul Prescod
Donovan Preston
Paul Price
Iuliia Proskurnia
Dorian Pula
Jyrki Pulliainen
Steve Purcell
Eduardo Pérez
......
......@@ -142,6 +142,8 @@ IDLE
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
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment