You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Document exec symbol for codeop.compile_command #83053
code.compile_command takes _exec_
as symbol.As it is not documented or mentioned anywhere I can't find any details about that.Can anyone please tell me what it does?
Carreau commented on May 10, 2020
Carreaumannequin
Mannequin
More actions
See the compile() documentation for the difference between eval/single/exec:
Activity
csabella commentedon Nov 21, 2019
codeop.compile_command accepts 'exec' as a symbol, but it is not documented.
Opening this bug report for an issue initially reported in PR3179.
ananthan-123 commentedon Feb 20, 2020
code.compile_command takes _exec_
as symbol.As it is not documented or mentioned anywhere I can't find any details about that.Can anyone please tell me what it does?
Carreau commentedon May 10, 2020
See the
compile()documentation for the difference between eval/single/exec:https://docs.python.org/3/library/functions.html#compile
execis meant for multiline program, for example you would "exec" the string read from a file to get a module.I don't think we should re-document what each of these does, but list the possible values that compile_command/CommandCompiler() can take.
nanjekyejoannah commentedon May 15, 2020
New changeset 7ba1f75 by Joannah Nanjekye in branch 'master':
bpo-38872: Document exec symbol for codeop.compile_command (GH-20047)
7ba1f75
nanjekyejoannah commentedon May 15, 2020
New changeset c1203b7 by Miss Islington (bot) in branch '3.7':
bpo-38872: Document exec symbol for codeop.compile_command (GH-20047) (bpo-20099)
c1203b7
nanjekyejoannah commentedon May 15, 2020
New changeset eb5ce32 by Miss Islington (bot) in branch '3.8':
bpo-38872: Document exec symbol for codeop.compile_command (GH-20047) (GH-20098)
eb5ce32