[Python-checkins] python/dist/src/Doc/ref ref7.tex,1.29.8.3,1.29.8.4

rhettinger@users.sourceforge.net rhettinger@users.sourceforge.net
Sun, 06 Oct 2002 15:37:43 -0700


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

Modified Files:
      Tag: release22-maint
	ref7.tex 
Log Message:
Backport 1.33:

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.29.8.3
retrieving revision 1.29.8.4
diff -C2 -d -r1.29.8.3 -r1.29.8.4
*** ref7.tex	15 Mar 2002 23:18:05 -0000	1.29.8.3
--- ref7.tex	6 Oct 2002 22:37:40 -0000	1.29.8.4
***************
*** 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.