]> granicus.if.org Git - python/commitdiff
Update programmer's note on nested functions.
authorJeremy Hylton <jeremy@alum.mit.edu>
Mon, 1 Apr 2002 21:30:15 +0000 (21:30 +0000)
committerJeremy Hylton <jeremy@alum.mit.edu>
Mon, 1 Apr 2002 21:30:15 +0000 (21:30 +0000)
Doc/ref/ref7.tex

index eeff1aad82399fefba98252466fe614d3d78ca33..3cad6f2fdc83f31dafd6479c85895e974bb5a0f9 100644 (file)
@@ -389,11 +389,11 @@ form.  The ``\keyword{def}'' form is actually more powerful since it
 allows the execution of multiple statements.
 \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.
+\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.
 
 
 \section{Class definitions\label{class}}