Added a stronger warning about changing the dictionary returned by

locals().
This commit is contained in:
Guido van Rossum 1998-06-18 16:45:34 +00:00
parent eda960a1dd
commit 7b7f6688d2
1 changed files with 3 additions and 2 deletions

View File

@ -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}