From adbd44827d4a8df1f04171c9c6e26e8047ff0198 Mon Sep 17 00:00:00 2001 From: Petr Viktorin Date: Mon, 2 Mar 2015 15:40:29 +0100 Subject: [PATCH 1/2] Remove obsolete caveat from reload() docs --- Doc/library/imp.rst | 6 ------ Doc/library/importlib.rst | 6 ------ 2 files changed, 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 -- 2.1.0