Reword explanation of global statement since an undeclared global is a

free variable and is subject to those rules.
This commit is contained in:
Jeremy Hylton 2002-04-01 21:25:32 +00:00
parent f0c1f1badb
commit f3255c8540
1 changed files with 3 additions and 3 deletions

View File

@ -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