mirror of
https://github.com/python/cpython.git
synced 2025-10-17 12:18:23 +00:00
SF bug #655271: Slightly modify locals() doc
Clarify the operation of locals().
This commit is contained in:
parent
2ca243368f
commit
69bf8f3f4e
2 changed files with 2 additions and 2 deletions
|
@ -624,7 +624,7 @@ class C:
|
||||||
\end{funcdesc}
|
\end{funcdesc}
|
||||||
|
|
||||||
\begin{funcdesc}{locals}{}
|
\begin{funcdesc}{locals}{}
|
||||||
Return a dictionary representing the current local symbol table.
|
Update and return a dictionary representing the current local symbol table.
|
||||||
\warning{The contents of this dictionary should not be modified;
|
\warning{The contents of this dictionary should not be modified;
|
||||||
changes may not affect the values of local variables used by the
|
changes may not affect the values of local variables used by the
|
||||||
interpreter.}
|
interpreter.}
|
||||||
|
|
|
@ -1041,7 +1041,7 @@ builtin_locals(PyObject *self)
|
||||||
PyDoc_STRVAR(locals_doc,
|
PyDoc_STRVAR(locals_doc,
|
||||||
"locals() -> dictionary\n\
|
"locals() -> dictionary\n\
|
||||||
\n\
|
\n\
|
||||||
Return the dictionary containing the current scope's local variables.");
|
Update and return a dictionary containing the current scope's local variables.");
|
||||||
|
|
||||||
|
|
||||||
static PyObject *
|
static PyObject *
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue