summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJeremy Hylton <jeremy@alum.mit.edu>2002-04-01 21:25:32 (GMT)
committerJeremy Hylton <jeremy@alum.mit.edu>2002-04-01 21:25:32 (GMT)
commitf3255c85408e800a66a24a4aaf8c17c642d8177a (patch)
tree99d558ec3fa82b064d63f09d01f33636992c2dc2
parentf0c1f1badb9e4147cb7e87f6b6813184ce3ae26a (diff)
downloadcpython-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.
-rw-r--r--Doc/ref/ref6.tex6
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