cpython: 3d3b9d456eb8 (original) (raw)
Mercurial > cpython
changeset 84138:3d3b9d456eb8
Issue #17177: Update the programming FAQ to use importlib [#17177]
Brett Cannon brett@python.org | |
---|---|
date | Fri, 14 Jun 2013 22:49:00 -0400 |
parents | 68f8f9d0cebf |
children | 54ad15b3cb6a |
files | Doc/faq/programming.rst |
diffstat | 1 files changed, 5 insertions(+), 5 deletions(-)[+] [-] Doc/faq/programming.rst 10 |
line wrap: on
line diff
--- a/Doc/faq/programming.rst +++ b/Doc/faq/programming.rst @@ -1738,12 +1738,12 @@ When I edit an imported module and reimp For reasons of efficiency as well as consistency, Python only reads the module file on the first time a module is imported. If it didn't, in a program consisting of many modules where each one imports the same basic module, the -basic module would be parsed and re-parsed many times. To force rereading of a +basic module would be parsed and re-parsed many times. To force re-reading of a changed module, do this::
Warning: this technique is not 100% fool-proof. In particular, modules containing statements like :: @@ -1755,10 +1755,10 @@ module contains class definitions, exist updated to use the new class definition. This can result in the following paradoxical behaviour: