summaryrefslogtreecommitdiffstats
path: root/Doc
diff options
context:
space:
mode:
authorGuido van Rossum <guido@python.org>1998-06-18 16:45:34 (GMT)
committerGuido van Rossum <guido@python.org>1998-06-18 16:45:34 (GMT)
commit7b7f6688d276c73a779ee9df7db41afe418987ca (patch)
tree54b131a9d180581977f1db964205ed9d0e385cb3 /Doc
parenteda960a1dde94e0c3a172889d22588f839e4b2de (diff)
downloadcpython-7b7f6688d276c73a779ee9df7db41afe418987ca.zip
cpython-7b7f6688d276c73a779ee9df7db41afe418987ca.tar.gz
cpython-7b7f6688d276c73a779ee9df7db41afe418987ca.tar.bz2
Added a stronger warning about changing the dictionary returned by
locals().
Diffstat (limited to 'Doc')
-rw-r--r--Doc/lib/libfuncs.tex5
1 files changed, 3 insertions, 2 deletions
diff --git a/Doc/lib/libfuncs.tex b/Doc/lib/libfuncs.tex
index 451c1a8..3104763 100644
--- a/Doc/lib/libfuncs.tex
+++ b/Doc/lib/libfuncs.tex
@@ -334,8 +334,9 @@ returns \code{['a', 'b', 'c']} and \code{list( (1, 2, 3) )} returns
\begin{funcdesc}{locals}{}
Return a dictionary representing the current local symbol table.
-Inside a function, modifying this dictionary does not always have the
-desired effect.
+\strong{Warning:} the contents of this dictionary should not be
+modified; changes may not affect the values of local variables used by
+the interpreter.
\end{funcdesc}
\begin{funcdesc}{long}{x}