diff options
author | Jeremy Hylton <jeremy@alum.mit.edu> | 2002-04-01 21:25:32 (GMT) |
---|---|---|
committer | Jeremy Hylton <jeremy@alum.mit.edu> | 2002-04-01 21:25:32 (GMT) |
commit | f3255c85408e800a66a24a4aaf8c17c642d8177a (patch) | |
tree | 99d558ec3fa82b064d63f09d01f33636992c2dc2 /Doc | |
parent | f0c1f1badb9e4147cb7e87f6b6813184ce3ae26a (diff) | |
download | cpython-f3255c85408e800a66a24a4aaf8c17c642d8177a.zip cpython-f3255c85408e800a66a24a4aaf8c17c642d8177a.tar.gz cpython-f3255c85408e800a66a24a4aaf8c17c642d8177a.tar.bz2 |
Reword explanation of global statement since an undeclared global is a
free variable and is subject to those rules.
Diffstat (limited to 'Doc')
-rw-r--r-- | Doc/ref/ref6.tex | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/Doc/ref/ref6.tex b/Doc/ref/ref6.tex index c78328c..2969240 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 |