From: Jeremy Hylton Date: Mon, 1 Apr 2002 21:25:32 +0000 (+0000) Subject: Reword explanation of global statement since an undeclared global is a X-Git-Tag: v2.3c1~6177 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=f3255c85408e800a66a24a4aaf8c17c642d8177a;p=python Reword explanation of global statement since an undeclared global is a free variable and is subject to those rules. --- diff --git a/Doc/ref/ref6.tex b/Doc/ref/ref6.tex index c78328ce22..29692406a1 100644 --- a/Doc/ref/ref6.tex +++ b/Doc/ref/ref6.tex @@ -719,9 +719,9 @@ information. The \keyword{global} statement is a declaration which holds for the entire current code block. It means that the listed identifiers are to be -interpreted as globals. While \emph{using} global names is automatic -if they are not defined in the local scope, \emph{assigning} to global -names would be impossible without \keyword{global}. +interpreted as globals. It would be impossible to assign to a global +variable without \keyword{global}, although free variables may refer +to globals without being declared global. \indexiii{global}{name}{binding} Names listed in a \keyword{global} statement must not be used in the same