]> granicus.if.org Git - python/commitdiff
Clarify the news item about "from M import X" if "M is not a real
authorGuido van Rossum <guido@python.org>
Sat, 3 Feb 2001 15:06:40 +0000 (15:06 +0000)
committerGuido van Rossum <guido@python.org>
Sat, 3 Feb 2001 15:06:40 +0000 (15:06 +0000)
module" after a complaint from Tim.

Misc/NEWS

index f63513586b2a7324d5d90521a0415cf2233469fe..4f1ba30055ece1edd3f24fdad6f14cdf0ab62f87 100644 (file)
--- a/Misc/NEWS
+++ b/Misc/NEWS
@@ -188,9 +188,9 @@ Core language, builtins, and interpreter
 
 - Two changes to from...import:
 
-  1) "from M import X" now works even if M is not a real module; it's
-     basically a getattr() operation with AttributeError exceptions
-     changed into ImportError.
+  1) "from M import X" now works even if (after loading module M)
+     sys.modules['M'] is not a real module; it's basically a getattr()
+     operation with AttributeError exceptions changed into ImportError.
 
   2) "from M import *" now looks for M.__all__ to decide which names to
      import; if M.__all__ doesn't exist, it uses M.__dict__.keys() but