[Python-checkins] python/dist/src/Doc/tut tut.tex,1.167,1.168

rhettinger@users.sourceforge.net rhettinger@users.sourceforge.net
Wed, 07 Aug 2002 13:20:54 -0700


Update of /cvsroot/python/python/dist/src/Doc/tut
In directory usw-pr-cvs1:/tmp/cvs-serv21077

Modified Files:
	tut.tex 
Log Message:
GvR pointed out that only enclosing function bodies are part of nested scopes.


Index: tut.tex
===================================================================
RCS file: /cvsroot/python/python/dist/src/Doc/tut/tut.tex,v
retrieving revision 1.167
retrieving revision 1.168
diff -C2 -d -r1.167 -r1.168
*** tut.tex	7 Aug 2002 16:09:48 -0000	1.167
--- tut.tex	7 Aug 2002 20:20:52 -0000	1.168
***************
*** 3554,3562 ****
  At any time during execution, there are at least three nested scopes whose
  namespaces are directly accessible: the innermost scope, which is searched
! first, contains the local names; the namespaces of any enclosing code
! blocks (a module, function, or class definition) which are searched starting
! with the nearest enclosing scope; the middle scope, searched next, contains
! the current module's global names; and the outermost scope (searched last)
! is the namespace containing built-in names.
  
  If a name is declared global, then all references and assignments go
--- 3554,3562 ----
  At any time during execution, there are at least three nested scopes whose
  namespaces are directly accessible: the innermost scope, which is searched
! first, contains the local names; the namespaces of any enclosing
! functions, which are searched starting with the nearest enclosing scope;
! the middle scope, searched next, contains the current module's global names;
! and the outermost scope (searched last) is the namespace containing built-in
! names.
  
  If a name is declared global, then all references and assignments go