[Python-checkins] CVS: python/dist/src/Doc/ref ref5.tex,1.56,1.57

Jeremy Hylton jhylton@users.sourceforge.net
Mon, 01 Apr 2002 12:52:26 -0800


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

Modified Files:
	ref5.tex 
Log Message:
Update / simplify Identifiers section for nested scopes.

How do I create a cross reference to section 4.1?


Index: ref5.tex
===================================================================
RCS file: /cvsroot/python/python/dist/src/Doc/ref/ref5.tex,v
retrieving revision 1.56
retrieving revision 1.57
diff -C2 -d -r1.56 -r1.57
*** ref5.tex	18 Mar 2002 16:47:14 -0000	1.56
--- ref5.tex	1 Apr 2002 20:52:24 -0000	1.57
***************
*** 64,85 ****
  \index{identifier}
  
! An identifier occurring as an atom is a reference to a local, global
! or built-in name binding.  If a name is assigned to anywhere in a code
! block (even in unreachable code), and is not mentioned in a
! \keyword{global} statement in that code block, then it refers to a local
! name throughout that code block.  When it is not assigned to anywhere
! in the block, or when it is assigned to but also explicitly listed in
! a \keyword{global} statement, it refers to a global name if one exists,
! else to a built-in name (and this binding may dynamically
! change).\footnote{The Python interpreter provides a useful set of
!   predefined built-in functions.  It is not recommended to reuse
!   (hide) these names with self defined objects.  See the
!   \citetitle[../lib/built-in-funcs.html]{Python Library Reference} for
!   the descriptions of built-in functions and methods.}
! \indexii{name}{binding}
! \index{code block}
! \stindex{global}
! \indexii{built-in}{name}
! \indexii{global}{name}
  
  When the name is bound to an object, evaluation of the atom yields
--- 64,69 ----
  \index{identifier}
  
! An identifier occurring as an atom is a name.  See Section 4.1 for
! documentation of naming and binding.
  
  When the name is bound to an object, evaluation of the atom yields