diff options
author | Jeremy Hylton <jeremy@alum.mit.edu> | 2002-04-01 21:30:15 (GMT) |
---|---|---|
committer | Jeremy Hylton <jeremy@alum.mit.edu> | 2002-04-01 21:30:15 (GMT) |
commit | 1824b59e89806febb9f5558a344e734e95e1361d (patch) | |
tree | 1ffcda4f2d8764ceb130d91c24ac3de6c00d0465 /Doc/ref/ref7.tex | |
parent | f3255c85408e800a66a24a4aaf8c17c642d8177a (diff) | |
download | cpython-1824b59e89806febb9f5558a344e734e95e1361d.zip cpython-1824b59e89806febb9f5558a344e734e95e1361d.tar.gz cpython-1824b59e89806febb9f5558a344e734e95e1361d.tar.bz2 |
Update programmer's note on nested functions.
Diffstat (limited to 'Doc/ref/ref7.tex')
-rw-r--r-- | Doc/ref/ref7.tex | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/Doc/ref/ref7.tex b/Doc/ref/ref7.tex index eeff1aa..3cad6f2 100644 --- a/Doc/ref/ref7.tex +++ b/Doc/ref/ref7.tex @@ -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}} |