]> granicus.if.org Git - python/commitdiff
bpo-31968: Documentation -- add clarification on the globals dict for exec() (GH...
authorAnthony Shaw <anthony.p.shaw@gmail.com>
Sat, 1 Jun 2019 15:51:58 +0000 (01:51 +1000)
committerRaymond Hettinger <rhettinger@users.noreply.github.com>
Sat, 1 Jun 2019 15:51:58 +0000 (08:51 -0700)
Doc/library/functions.rst

index 7170a7817205b770de77716271f3cc358a1cb42f..425a985320fcfba060818218ac0cd3434f224a21 100644 (file)
@@ -499,7 +499,8 @@ are always available.  They are listed here in alphabetical order.
    :func:`exec` function. The return value is ``None``.
 
    In all cases, if the optional parts are omitted, the code is executed in the
-   current scope.  If only *globals* is provided, it must be a dictionary, which
+   current scope.  If only *globals* is provided, it must be a dictionary
+   (and not a subclass of dictionary), which
    will be used for both the global and the local variables.  If *globals* and
    *locals* are given, they are used for the global and local variables,
    respectively.  If provided, *locals* can be any mapping object.  Remember