From: Guido van Rossum Date: Thu, 18 Jun 1998 16:45:34 +0000 (+0000) Subject: Added a stronger warning about changing the dictionary returned by X-Git-Tag: v1.5.2a1~452 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=7b7f6688d276c73a779ee9df7db41afe418987ca;p=python Added a stronger warning about changing the dictionary returned by locals(). --- diff --git a/Doc/lib/libfuncs.tex b/Doc/lib/libfuncs.tex index 451c1a8e27..3104763b38 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}