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
f0c1f1ba
Commit
f0c1f1ba
authored
Apr 01, 2002
by
Jeremy Hylton
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Note the sole case in which the ban on "from ... import *" within a
function is enforced.
parent
15b68976
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
5 additions
and
1 deletion
+5
-1
Doc/ref/ref6.tex
Doc/ref/ref6.tex
+5
-1
No files found.
Doc/ref/ref6.tex
View file @
f0c1f1ba
...
@@ -680,7 +680,11 @@ defined, the set of public names includes all names found in the
...
@@ -680,7 +680,11 @@ defined, the set of public names includes all names found in the
module's namespace which do not begin with an underscore character
module's namespace which do not begin with an underscore character
(
\character
{_}
).
(
\character
{_}
).
The
\keyword
{
from
}
form with
\samp
{
*
}
may only occur in a module scope.
The
\keyword
{
from
}
form with
\samp
{
*
}
may only occur in a module
scope. If the wild card form of import ---
\samp
{
import *
}
--- is
used in a function and the function contains or is a nested block with
free variables, the compiler will raise a
\exception
{
SyntaxError
}
.
\kwindex
{
from
}
\kwindex
{
from
}
\stindex
{
from
}
\stindex
{
from
}
...
...
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