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

Skip to content

Commit 46f2157

Browse files
committed
added ref to vars()
1 parent 124107b commit 46f2157

4 files changed

Lines changed: 24 additions & 6 deletions

File tree

Doc/ref/ref4.tex

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -119,6 +119,14 @@ \section{Code blocks, execution frames, and name spaces} \label{execframes}
119119

120120
\end{description}
121121

122+
The built-in function \verb@vars()@ returns a dictionary representing
123+
the current local name space. The effect of modifications to this
124+
dictionary on the name space are undefined.%
125+
\footnote{The current implementation returns the dictionary actually
126+
used to implement the name space, {\em except} for functions, where
127+
the optimizer may cause the local name space to be implemented
128+
differently.}
129+
122130
\section{Exceptions}
123131

124132
Exceptions are a means of breaking out of the normal flow of control

Doc/ref/ref6.tex

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -524,6 +524,7 @@ \section{The {\tt exec} statement} \label{exec}
524524
must be dictionaries and they are used for the global and local
525525
variables, respectively.
526526

527-
Note: dynamic evaluation of expressions is supported by the built-in
528-
function \verb@eval@.
529-
527+
Hints: dynamic evaluation of expressions is supported by the built-in
528+
function \verb@eval()@. The built-in function \verb@vars()@ returns
529+
the current local dictionary, which may be useful to pass around for
530+
use by \verb@exec@.

Doc/ref4.tex

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -119,6 +119,14 @@ \section{Code blocks, execution frames, and name spaces} \label{execframes}
119119

120120
\end{description}
121121

122+
The built-in function \verb@vars()@ returns a dictionary representing
123+
the current local name space. The effect of modifications to this
124+
dictionary on the name space are undefined.%
125+
\footnote{The current implementation returns the dictionary actually
126+
used to implement the name space, {\em except} for functions, where
127+
the optimizer may cause the local name space to be implemented
128+
differently.}
129+
122130
\section{Exceptions}
123131

124132
Exceptions are a means of breaking out of the normal flow of control

Doc/ref6.tex

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -524,6 +524,7 @@ \section{The {\tt exec} statement} \label{exec}
524524
must be dictionaries and they are used for the global and local
525525
variables, respectively.
526526

527-
Note: dynamic evaluation of expressions is supported by the built-in
528-
function \verb@eval@.
529-
527+
Hints: dynamic evaluation of expressions is supported by the built-in
528+
function \verb@eval()@. The built-in function \verb@vars()@ returns
529+
the current local dictionary, which may be useful to pass around for
530+
use by \verb@exec@.

0 commit comments

Comments
 (0)