Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
C
cpython
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
Kirill Smelkov
cpython
Commits
ba38123b
Commit
ba38123b
authored
Feb 03, 2001
by
Guido van Rossum
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Clarify the news item about "from M import X" if "M is not a real
module" after a complaint from Tim.
parent
cf263669
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
3 deletions
+3
-3
Misc/NEWS
Misc/NEWS
+3
-3
No files found.
Misc/NEWS
View file @
ba38123b
...
...
@@ -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
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment