mirror of
https://github.com/python/cpython.git
synced 2025-07-24 11:44:31 +00:00
Added a stronger warning about changing the dictionary returned by
locals().
This commit is contained in:
parent
eda960a1dd
commit
7b7f6688d2
1 changed files with 3 additions and 2 deletions
|
@ -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…
Add table
Add a link
Reference in a new issue