diff options
author | Guido van Rossum <guido@python.org> | 2001-02-03 15:06:40 (GMT) |
---|---|---|
committer | Guido van Rossum <guido@python.org> | 2001-02-03 15:06:40 (GMT) |
commit | ba38123b7515e58a931eeb573a558d6d85d09f15 (patch) | |
tree | 89d3278eccb9a954fb8ae3325b966e24bda990c0 /Misc | |
parent | cf2636696dddb32302993860d20e788fa92d9734 (diff) | |
download | cpython-ba38123b7515e58a931eeb573a558d6d85d09f15.zip cpython-ba38123b7515e58a931eeb573a558d6d85d09f15.tar.gz cpython-ba38123b7515e58a931eeb573a558d6d85d09f15.tar.bz2 |
Clarify the news item about "from M import X" if "M is not a real
module" after a complaint from Tim.
Diffstat (limited to 'Misc')
-rw-r--r-- | Misc/NEWS | 6 |
1 files changed, 3 insertions, 3 deletions
@@ -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 |