Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit 69bf8f3

Browse files
committed
SF bug #655271: Slightly modify locals() doc
Clarify the operation of locals().
1 parent 2ca2433 commit 69bf8f3

2 files changed

Lines changed: 2 additions & 2 deletions

File tree

Doc/lib/libfuncs.tex

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -624,7 +624,7 @@ \section{Built-in Functions \label{built-in-funcs}}
624624
\end{funcdesc}
625625

626626
\begin{funcdesc}{locals}{}
627-
Return a dictionary representing the current local symbol table.
627+
Update and return a dictionary representing the current local symbol table.
628628
\warning{The contents of this dictionary should not be modified;
629629
changes may not affect the values of local variables used by the
630630
interpreter.}

Python/bltinmodule.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1041,7 +1041,7 @@ builtin_locals(PyObject *self)
10411041
PyDoc_STRVAR(locals_doc,
10421042
"locals() -> dictionary\n\
10431043
\n\
1044-
Return the dictionary containing the current scope's local variables.");
1044+
Update and return a dictionary containing the current scope's local variables.");
10451045

10461046

10471047
static PyObject *

0 commit comments

Comments
 (0)