Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings
This repository was archived by the owner on Feb 13, 2025. It is now read-only.

Commit 059b9ea

Browse files
tonybaloneyrhettinger
authored andcommitted
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

Lines changed: 2 additions & 1 deletion
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)

AltStyle によって変換されたページ (->オリジナル) /