Skip to content
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.

Commit 059b9ea

Browse files
tonybaloneyrhettinger
authored andcommittedJun 1, 2019
bpo-31968: Documentation -- add clarification on the globals dict for exec() (pythonGH-13140)
1 parent 6650105 commit 059b9ea

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed
 

‎Doc/library/functions.rst

+2-1
Original file line numberDiff line numberDiff line change
@@ -499,7 +499,8 @@ are always available. They are listed here in alphabetical order.
499499
:func:`exec` function. The return value is ``None``.
500500

501501
In all cases, if the optional parts are omitted, the code is executed in the
502-
current scope. If only *globals* is provided, it must be a dictionary, which
502+
current scope. If only *globals* is provided, it must be a dictionary
503+
(and not a subclass of dictionary), which
503504
will be used for both the global and the local variables. If *globals* and
504505
*locals* are given, they are used for the global and local variables,
505506
respectively. If provided, *locals* can be any mapping object. Remember

0 commit comments

Comments
 (0)
Please sign in to comment.