summaryrefslogtreecommitdiffstats
path: root/Doc/ref4.tex
diff options
context:
space:
mode:
authorGuido van Rossum <guido@python.org>1995-07-07 23:06:33 (GMT)
committerGuido van Rossum <guido@python.org>1995-07-07 23:06:33 (GMT)
commit611be707c28d547296614558b18f49083029e4fb (patch)
tree9a6be8673d761b51aa5200542c266fca15bbb863 /Doc/ref4.tex
parent8fd02194c5c52eca15759a1a5282e0519df6beca (diff)
downloadcpython-611be707c28d547296614558b18f49083029e4fb.zip
cpython-611be707c28d547296614558b18f49083029e4fb.tar.gz
cpython-611be707c28d547296614558b18f49083029e4fb.tar.bz2
replace vars() with locals() and globals(); 3rd raise arg; typos
Diffstat (limited to 'Doc/ref4.tex')
-rw-r--r--Doc/ref4.tex11
1 files changed, 6 insertions, 5 deletions
diff --git a/Doc/ref4.tex b/Doc/ref4.tex
index e4f3c2c..429302a 100644
--- a/Doc/ref4.tex
+++ b/Doc/ref4.tex
@@ -125,13 +125,14 @@ overridden with optional extra arguments.
\end{description}
-The built-in function \verb@vars()@ returns a dictionary representing
-the current local name space. The effect of modifications to this
-dictionary on the name space are undefined.%
-\footnote{The current implementation returns the dictionary actually
+The built-in functions \verb@globals()@ and \verb@locals()@ returns a
+dictionary representing the current global and local name space,
+respectively. The effect of modifications to this dictionary on the
+name space are undefined.%
+\footnote{The current implementations return the dictionary actually
used to implement the name space, {\em except} for functions, where
the optimizer may cause the local name space to be implemented
-differently.}
+differently, and \verb@locals()@ returns a read-only dictionary.}
\section{Exceptions}