From 69bf8f3f4e2867bec07f6682df83174e5ae4f0ad Mon Sep 17 00:00:00 2001 From: Raymond Hettinger Date: Sat, 4 Jan 2003 02:16:22 +0000 Subject: SF bug #655271: Slightly modify locals() doc Clarify the operation of locals(). --- Doc/lib/libfuncs.tex | 2 +- Python/bltinmodule.c | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/Doc/lib/libfuncs.tex b/Doc/lib/libfuncs.tex index 85ead28..d5b565f 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 ad06250..45ea4dc 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 * -- cgit v0.12