mirror of https://github.com/python/cpython
Added a stronger warning about changing the dictionary returned by
locals().
This commit is contained in:
parent
eda960a1dd
commit
7b7f6688d2
|
@ -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}
|
||||
|
|
Loading…
Reference in New Issue