Commit 9e441892 authored by Raymond Hettinger's avatar Raymond Hettinger

SF bug #655271: Slightly modify locals() doc

Clarify the operation of locals().
parent 6f3f7843
...@@ -624,7 +624,7 @@ class C: ...@@ -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) ...@@ -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 *
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment