[Python-checkins] CVS: python/dist/src/Doc/ref ref7.tex,1.32,1.33

Jeremy Hylton jhylton@users.sourceforge.net
Mon, 01 Apr 2002 13:30:17 -0800


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

Modified Files:
	ref7.tex 
Log Message:
Update programmer's note on nested functions.


Index: ref7.tex
===================================================================
RCS file: /cvsroot/python/python/dist/src/Doc/ref/ref7.tex,v
retrieving revision 1.32
retrieving revision 1.33
diff -C2 -d -r1.32 -r1.33
*** ref7.tex	15 Mar 2002 23:21:37 -0000	1.32
--- ref7.tex	1 Apr 2002 21:30:15 -0000	1.33
***************
*** 390,398 ****
  \indexii{lambda}{form}
  
! \strong{Programmer's note:} a ``\code{def}'' form executed inside a
! function definition defines a local function that can be returned or
! passed around.  The semantics of name resolution in the nested
! function will change in Python 2.2.  See the appendix for a
! description of the new semantics.
  
  
--- 390,398 ----
  \indexii{lambda}{form}
  
! \strong{Programmer's note:} Functions are first-class objects.  A
! ``\code{def}'' form executed inside a function definition defines a
! local function that can be returned or passed around.  Free variables
! used in the nested function can access the local variables of the
! function containing the def.  See section \ref{naming} for details.