diff options
author | Guido van Rossum <guido@python.org> | 1996-08-09 21:00:19 (GMT) |
---|---|---|
committer | Guido van Rossum <guido@python.org> | 1996-08-09 21:00:19 (GMT) |
commit | 22277c860fad80511416dca335cb853c4d736cfb (patch) | |
tree | 8e330957cd463ac433af6040a5cdec8e7cde2ce0 /Doc | |
parent | 45687bb9761be8ec84ed94b50be73953b7ef770f (diff) | |
download | cpython-22277c860fad80511416dca335cb853c4d736cfb.zip cpython-22277c860fad80511416dca335cb853c4d736cfb.tar.gz cpython-22277c860fad80511416dca335cb853c4d736cfb.tar.bz2 |
Added footnote about lamda bodies being the same as function bodies.
Diffstat (limited to 'Doc')
-rw-r--r-- | Doc/ref/ref4.tex | 7 | ||||
-rw-r--r-- | Doc/ref4.tex | 7 |
2 files changed, 12 insertions, 2 deletions
diff --git a/Doc/ref/ref4.tex b/Doc/ref/ref4.tex index 2151a6a..ed621c4 100644 --- a/Doc/ref/ref4.tex +++ b/Doc/ref/ref4.tex @@ -99,7 +99,7 @@ Module & n.s. for this module & same as global & \\ Script & n.s. for \verb@__main__@ & same as global & \\ Interactive command & n.s. for \verb@__main__@ & same as global & \\ Class definition & global n.s. of containing block & new n.s. & \\ -Function body & global n.s. of containing block & new n.s. & \\ +Function body & global n.s. of containing block & new n.s. & (2) \\ String passed to \verb@exec@ statement & global n.s. of containing block & local n.s. of containing block & (1) \\ @@ -123,6 +123,11 @@ Notes: \item[(1)] The global and local name space for these can be overridden with optional extra arguments. +\item[(2)] The body of lambda forms (see section \ref{lambda}) is +treated exactly the same as a (nested) function definition. Lambda +forms have their own name space consisting of their formal arguments. +\indexii{lambda}{form} + \end{description} The built-in functions \verb@globals()@ and \verb@locals()@ returns a diff --git a/Doc/ref4.tex b/Doc/ref4.tex index 2151a6a..ed621c4 100644 --- a/Doc/ref4.tex +++ b/Doc/ref4.tex @@ -99,7 +99,7 @@ Module & n.s. for this module & same as global & \\ Script & n.s. for \verb@__main__@ & same as global & \\ Interactive command & n.s. for \verb@__main__@ & same as global & \\ Class definition & global n.s. of containing block & new n.s. & \\ -Function body & global n.s. of containing block & new n.s. & \\ +Function body & global n.s. of containing block & new n.s. & (2) \\ String passed to \verb@exec@ statement & global n.s. of containing block & local n.s. of containing block & (1) \\ @@ -123,6 +123,11 @@ Notes: \item[(1)] The global and local name space for these can be overridden with optional extra arguments. +\item[(2)] The body of lambda forms (see section \ref{lambda}) is +treated exactly the same as a (nested) function definition. Lambda +forms have their own name space consisting of their formal arguments. +\indexii{lambda}{form} + \end{description} The built-in functions \verb@globals()@ and \verb@locals()@ returns a |