[Python-checkins] CVS: python/dist/src/Doc/ref ref6.tex,1.51,1.52
Jeremy Hylton
jhylton@users.sourceforge.net
Mon, 01 Apr 2002 13:25:35 -0800
Update of /cvsroot/python/python/dist/src/Doc/ref
In directory usw-pr-cvs1:/tmp/cvs-serv13037
Modified Files:
ref6.tex
Log Message:
Reword explanation of global statement since an undeclared global is a
free variable and is subject to those rules.
Index: ref6.tex
===================================================================
RCS file: /cvsroot/python/python/dist/src/Doc/ref/ref6.tex,v
retrieving revision 1.51
retrieving revision 1.52
diff -C2 -d -r1.51 -r1.52
*** ref6.tex 1 Apr 2002 21:19:44 -0000 1.51
--- ref6.tex 1 Apr 2002 21:25:32 -0000 1.52
***************
*** 720,726 ****
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}.
\indexiii{global}{name}{binding}
--- 720,726 ----
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. 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}