summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorRaymond Hettinger <python@rcn.com>2003-01-04 02:16:22 (GMT)
committerRaymond Hettinger <python@rcn.com>2003-01-04 02:16:22 (GMT)
commit69bf8f3f4e2867bec07f6682df83174e5ae4f0ad (patch)
tree9ee3e8ddda435c015717ed3b5a3e78c38e7734d5
parent2ca243368f45dd759f0e40e681238ebe4cea0b78 (diff)
downloadcpython-69bf8f3f4e2867bec07f6682df83174e5ae4f0ad.zip
cpython-69bf8f3f4e2867bec07f6682df83174e5ae4f0ad.tar.gz
cpython-69bf8f3f4e2867bec07f6682df83174e5ae4f0ad.tar.bz2
SF bug #655271: Slightly modify locals() doc
Clarify the operation of locals().
-rw-r--r--Doc/lib/libfuncs.tex2
-rw-r--r--Python/bltinmodule.c2
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 *