[issue38872] Document exec symbol for codeop.compile_command
Matthias Bussonnier
report at bugs.python.org
Sun May 10 19:12:20 EDT 2020
Matthias Bussonnier <bussonniermatthias at gmail.com> added the comment:
See the `compile()` documentation for the difference between eval/single/exec:
https://docs.python.org/3/library/functions.html#compile
`exec` is 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.
----------
_______________________________________
Python tracker <report at bugs.python.org>
<https://bugs.python.org/issue38872>
_______________________________________
More information about the Python-bugs-list
mailing list