Skip to content

Commit

Permalink
Issue python#20769: Improve reload() docs. Patch by Dorian Pula.
Browse files Browse the repository at this point in the history
  • Loading branch information
rbtcollins committed Aug 4, 2015
2 parents 78c89eb + 1ae28d2 commit b3ca31f
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 5 deletions.
10 changes: 5 additions & 5 deletions Doc/library/importlib.rst
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
1 change: 1 addition & 0 deletions Misc/ACKS
Original file line number Diff line number Diff line change
Expand Up @@ -1127,6 +1127,7 @@ Paul Prescod
Donovan Preston
Paul Price
Iuliia Proskurnia
Dorian Pula
Jyrki Pulliainen
Steve Purcell
Eduardo Pérez
Expand Down
2 changes: 2 additions & 0 deletions Misc/NEWS
Original file line number Diff line number Diff line change
Expand Up @@ -38,6 +38,8 @@ Library
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
Expand Down

0 comments on commit b3ca31f

Please sign in to comment.