summaryrefslogtreecommitdiffstats
path: root/Doc
diff options
context:
space:
mode:
authorR David Murray <rdmurray@bitdance.com>2015-05-02 18:58:32 (GMT)
committerR David Murray <rdmurray@bitdance.com>2015-05-02 18:58:32 (GMT)
commitdeed215313d94db67015d7e76f9c8f829f6aa440 (patch)
treee4ebe4d770fcef915c730f20432d64edf4150a08 /Doc
parent7b3b98c965025d374ba7f8517fc88371771433e3 (diff)
parent6d877ef0260b4b9bc2d722a6817818c06047e42a (diff)
downloadcpython-deed215313d94db67015d7e76f9c8f829f6aa440.zip
cpython-deed215313d94db67015d7e76f9c8f829f6aa440.tar.gz
cpython-deed215313d94db67015d7e76f9c8f829f6aa440.tar.bz2
Merge: #24081: Remove obsolete caveat from import docs.
Diffstat (limited to 'Doc')
-rw-r--r--Doc/library/imp.rst6
-rw-r--r--Doc/library/importlib.rst6
2 files changed, 0 insertions, 12 deletions
diff --git a/Doc/library/imp.rst b/Doc/library/imp.rst
index 5557346..68a6b68 100644
--- a/Doc/library/imp.rst
+++ b/Doc/library/imp.rst
@@ -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
diff --git a/Doc/library/importlib.rst b/Doc/library/importlib.rst
index 82c696d..07d8ae1 100644
--- a/Doc/library/importlib.rst
+++ b/Doc/library/importlib.rst
@@ -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