Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit 22277c8

Browse files
committed
Added footnote about lamda bodies being the same as function bodies.
1 parent 45687bb commit 22277c8

2 files changed

Lines changed: 12 additions & 2 deletions

File tree

Doc/ref/ref4.tex

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -99,7 +99,7 @@ \section{Code blocks, execution frames, and name spaces} \label{execframes}
9999
Script & n.s. for \verb@__main__@ & same as global & \\
100100
Interactive command & n.s. for \verb@__main__@ & same as global & \\
101101
Class definition & global n.s. of containing block & new n.s. & \\
102-
Function body & global n.s. of containing block & new n.s. & \\
102+
Function body & global n.s. of containing block & new n.s. & (2) \\
103103
String passed to \verb@exec@ statement
104104
& global n.s. of containing block
105105
& local n.s. of containing block & (1) \\
@@ -123,6 +123,11 @@ \section{Code blocks, execution frames, and name spaces} \label{execframes}
123123
\item[(1)] The global and local name space for these can be
124124
overridden with optional extra arguments.
125125

126+
\item[(2)] The body of lambda forms (see section \ref{lambda}) is
127+
treated exactly the same as a (nested) function definition. Lambda
128+
forms have their own name space consisting of their formal arguments.
129+
\indexii{lambda}{form}
130+
126131
\end{description}
127132

128133
The built-in functions \verb@globals()@ and \verb@locals()@ returns a

Doc/ref4.tex

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -99,7 +99,7 @@ \section{Code blocks, execution frames, and name spaces} \label{execframes}
9999
Script & n.s. for \verb@__main__@ & same as global & \\
100100
Interactive command & n.s. for \verb@__main__@ & same as global & \\
101101
Class definition & global n.s. of containing block & new n.s. & \\
102-
Function body & global n.s. of containing block & new n.s. & \\
102+
Function body & global n.s. of containing block & new n.s. & (2) \\
103103
String passed to \verb@exec@ statement
104104
& global n.s. of containing block
105105
& local n.s. of containing block & (1) \\
@@ -123,6 +123,11 @@ \section{Code blocks, execution frames, and name spaces} \label{execframes}
123123
\item[(1)] The global and local name space for these can be
124124
overridden with optional extra arguments.
125125

126+
\item[(2)] The body of lambda forms (see section \ref{lambda}) is
127+
treated exactly the same as a (nested) function definition. Lambda
128+
forms have their own name space consisting of their formal arguments.
129+
\indexii{lambda}{form}
130+
126131
\end{description}
127132

128133
The built-in functions \verb@globals()@ and \verb@locals()@ returns a

0 commit comments

Comments
 (0)