]> granicus.if.org Git - python/commitdiff
Reword explanation of global statement since an undeclared global is a
authorJeremy Hylton <jeremy@alum.mit.edu>
Mon, 1 Apr 2002 21:25:32 +0000 (21:25 +0000)
committerJeremy Hylton <jeremy@alum.mit.edu>
Mon, 1 Apr 2002 21:25:32 +0000 (21:25 +0000)
free variable and is subject to those rules.

Doc/ref/ref6.tex

index c78328ce2231e35a90180426a646785790983f1c..29692406a1a970f67736afd6cff3f097539ea5fd 100644 (file)
@@ -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