Merge: #24081: Remove obsolete caveat from import docs.

This commit is contained in:
R David Murray 2015-05-02 14:58:32 -04:00
commit deed215313
2 changed files with 0 additions and 12 deletions

View File

@ -149,12 +149,6 @@ This module provides an interface to the mechanisms used to implement the
There are a number of other caveats:
If a module is syntactically correct but its initialization fails, the first
:keyword:`import` statement for it does not bind its name locally, but does
store a (partially initialized) module object in ``sys.modules``. To reload the
module you must first :keyword:`import` it again (this will bind the name to the
partially initialized module object) before you can :func:`reload` it.
When a module is reloaded, its dictionary (containing the module's global
variables) is retained. Redefinitions of names will override the old
definitions, so this is generally not a problem. If the new version of a module

View File

@ -159,12 +159,6 @@ Functions
There are a number of other caveats:
If a module is syntactically correct but its initialization fails, the first
:keyword:`import` statement for it does not bind its name locally, but does
store a (partially initialized) module object in ``sys.modules``. To reload
the module you must first :keyword:`import` it again (this will bind the name
to the partially initialized module object) before you can :func:`reload` it.
When a module is reloaded, its dictionary (containing the module's global
variables) is retained. Redefinitions of names will override the old
definitions, so this is generally not a problem. If the new version of a