Skip to content

Commit

Permalink
bpo-31968: Documentation -- add clarification on the globals dict for…
Browse files Browse the repository at this point in the history
… exec() (pythonGH-13140)
  • Loading branch information
tonybaloney authored and rhettinger committed Jun 1, 2019
1 parent 6650105 commit 059b9ea
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion Doc/library/functions.rst
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 059b9ea

Please sign in to comment.