From: Raymond Hettinger Date: Sat, 4 Jan 2003 02:16:22 +0000 (+0000) Subject: SF bug #655271: Slightly modify locals() doc X-Git-Tag: v2.3c1~2601 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=69bf8f3f4e2867bec07f6682df83174e5ae4f0ad;p=python SF bug #655271: Slightly modify locals() doc Clarify the operation of locals(). --- diff --git a/Doc/lib/libfuncs.tex b/Doc/lib/libfuncs.tex index 85ead28fdb..d5b565f4a4 100644 --- a/Doc/lib/libfuncs.tex +++ b/Doc/lib/libfuncs.tex @@ -624,7 +624,7 @@ class C: \end{funcdesc} \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; changes may not affect the values of local variables used by the interpreter.} diff --git a/Python/bltinmodule.c b/Python/bltinmodule.c index ad0625016f..45ea4dcf87 100644 --- a/Python/bltinmodule.c +++ b/Python/bltinmodule.c @@ -1041,7 +1041,7 @@ builtin_locals(PyObject *self) PyDoc_STRVAR(locals_doc, "locals() -> dictionary\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 *