]> granicus.if.org Git - python/commitdiff
Issue #19392: Document that imp.reload() now relies on __loader__
authorBrett Cannon <brett@python.org>
Fri, 25 Oct 2013 17:46:15 +0000 (13:46 -0400)
committerBrett Cannon <brett@python.org>
Fri, 25 Oct 2013 17:46:15 +0000 (13:46 -0400)
being defined on top of __name__.

Doc/library/imp.rst
Misc/NEWS

index af98489b6de2d5fcb96dce8eacc39758bae02d32..ebdbd4d443c1cc2dc1c976293db11b5274a64955 100644 (file)
@@ -172,6 +172,10 @@ This module provides an interface to the mechanisms used to implement the
    the class does not affect the method definitions of the instances --- they
    continue to use the old class definition.  The same is true for derived classes.
 
+   .. versionchanged:: 3.3
+      Relies on both ``__name__`` and ``__loader__`` being defined on the module
+      being reloaded instead of just ``__name__``.
+
 
 The following functions are conveniences for handling :pep:`3147` byte-compiled
 file paths.
index fbe592419c9d0607495d8b18ad1b2987ccfd3661..80464f7f93112e002b83302d3cb49f06b7ba6f01 100644 (file)
--- a/Misc/NEWS
+++ b/Misc/NEWS
@@ -531,6 +531,9 @@ Tests
 Documentation
 -------------
 
+- Issue #19392: Document that `imp.reload()` now also requires `__loader__` to
+  be set on the module being reloaded.
+
 - Issue #18758: Fixed and improved cross-references.
 
 - Issue #18743: Fix references to non-existant "StringIO" module.