Commit f0c1f1ba authored by Jeremy Hylton's avatar Jeremy Hylton

Note the sole case in which the ban on "from ... import *" within a

function is enforced.
parent 15b68976
...@@ -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}
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment