summaryrefslogtreecommitdiffstats
path: root/Doc/ref/ref6.tex
diff options
context:
space:
mode:
authorRaymond Hettinger <python@rcn.com>2004-08-03 05:17:58 (GMT)
committerRaymond Hettinger <python@rcn.com>2004-08-03 05:17:58 (GMT)
commit70fcdb8be0ef544432b8bd48a0abd0475f0fb778 (patch)
tree6f26ba6f61543a000f0843510afaf2418bcf0886 /Doc/ref/ref6.tex
parenta57ec93b934b1c04ab837aa541fc7101c6bc0055 (diff)
downloadcpython-70fcdb8be0ef544432b8bd48a0abd0475f0fb778.zip
cpython-70fcdb8be0ef544432b8bd48a0abd0475f0fb778.tar.gz
cpython-70fcdb8be0ef544432b8bd48a0abd0475f0fb778.tar.bz2
Document general mappings for the locals argument for exec and execfile().
Diffstat (limited to 'Doc/ref/ref6.tex')
-rw-r--r--Doc/ref/ref6.tex5
1 files changed, 3 insertions, 2 deletions
diff --git a/Doc/ref/ref6.tex b/Doc/ref/ref6.tex
index a389176..1017aca 100644
--- a/Doc/ref/ref6.tex
+++ b/Doc/ref/ref6.tex
@@ -873,8 +873,9 @@ In all cases, if the optional parts are omitted, the code is executed
in the current scope. If only the first expression after \keyword{in}
is specified, it should be a dictionary, which will be used for both
the global and the local variables. If two expressions are given,
-both must be dictionaries and they are used for the global and local
-variables, respectively.
+they are used for the global and local variables, respectively.
+If provided, \var{locals} can be any mapping object.
+\versionchanged[formerly \var{locals} was required to be a dictionary]{2.4}
As a side effect, an implementation may insert additional keys into
the dictionaries given besides those corresponding to variable names