Commit b36bd4fe authored by Jeremy Hylton's avatar Jeremy Hylton

Reword explanation of global statement since an undeclared global is a

free variable and is subject to those rules.
parent 7758fa43
...@@ -719,9 +719,9 @@ information. ...@@ -719,9 +719,9 @@ information.
The \keyword{global} statement is a declaration which holds for the The \keyword{global} statement is a declaration which holds for the
entire current code block. It means that the listed identifiers are to be entire current code block. It means that the listed identifiers are to be
interpreted as globals. While \emph{using} global names is automatic interpreted as globals. It would be impossible to assign to a global
if they are not defined in the local scope, \emph{assigning} to global variable without \keyword{global}, although free variables may refer
names would be impossible without \keyword{global}. to globals without being declared global.
\indexiii{global}{name}{binding} \indexiii{global}{name}{binding}
Names listed in a \keyword{global} statement must not be used in the same Names listed in a \keyword{global} statement must not be used in the same
......
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