This issue tracker has been migrated to GitHub, and is currently read-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.

classification
Title: Document exec symbol for codeop.compile_command
Type: enhancement Stage: resolved
Components: Documentation Versions: Python 3.9, Python 3.8, Python 3.7
process
Status: closed Resolution:
Dependencies: Superseder:
Assigned To: docs@python Nosy List: Ananthakrishnan, cheryl.sabella, docs@python, mbussonn, miss-islington, nanjekyejoannah
Priority: normal Keywords: patch

Created on 2019-11-21 01:14 by cheryl.sabella, last changed 2022-04-11 14:59 by admin. This issue is now closed.

Pull Requests
URL Status Linked Edit
PR 20047 merged nanjekyejoannah, 2020-05-12 00:45
PR 20098 merged miss-islington, 2020-05-15 01:00
PR 20099 merged miss-islington, 2020-05-15 01:00
Messages (6)
msg357118 - (view) Author: Cheryl Sabella (cheryl.sabella) * (Python committer) Date: 2019-11-21 01:14
codeop.compile_command accepts 'exec' as a symbol, but it is not documented.  

Opening this bug report for an issue initially reported in PR3179.
msg362297 - (view) Author: Ananthakrishnan (Ananthakrishnan) * Date: 2020-02-20 04:45
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?
msg368596 - (view) Author: Matthias Bussonnier (mbussonn) * Date: 2020-05-10 23:12
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.
msg368889 - (view) Author: Joannah Nanjekye (nanjekyejoannah) * (Python committer) Date: 2020-05-15 00:59
New changeset 7ba1f75f3f02b4b50ac6d7e17d15e467afa36aac by Joannah Nanjekye in branch 'master':
bpo-38872: Document exec symbol for codeop.compile_command (GH-20047)
https://github.com/python/cpython/commit/7ba1f75f3f02b4b50ac6d7e17d15e467afa36aac
msg368900 - (view) Author: Joannah Nanjekye (nanjekyejoannah) * (Python committer) Date: 2020-05-15 01:19
New changeset c1203b75ffe429b28cb2e2480deb0d0b8d3a941c by Miss Islington (bot) in branch '3.7':
bpo-38872: Document exec symbol for codeop.compile_command (GH-20047) (#20099)
https://github.com/python/cpython/commit/c1203b75ffe429b28cb2e2480deb0d0b8d3a941c
msg368911 - (view) Author: Joannah Nanjekye (nanjekyejoannah) * (Python committer) Date: 2020-05-15 01:38
New changeset eb5ce324f724a59c51d7a76d1dd49b550cdf386b by Miss Islington (bot) in branch '3.8':
bpo-38872: Document exec symbol for codeop.compile_command (GH-20047) (GH-20098)
https://github.com/python/cpython/commit/eb5ce324f724a59c51d7a76d1dd49b550cdf386b
History
Date User Action Args
2022-04-11 14:59:23adminsetgithub: 83053
2020-05-15 01:38:24nanjekyejoannahsetmessages: + msg368911
2020-05-15 01:19:45nanjekyejoannahsetmessages: + msg368900
2020-05-15 01:11:17nanjekyejoannahsetstatus: open -> closed
stage: patch review -> resolved
2020-05-15 01:00:21miss-islingtonsetpull_requests: + pull_request19404
2020-05-15 01:00:11miss-islingtonsetnosy: + miss-islington
pull_requests: + pull_request19403
2020-05-15 00:59:53nanjekyejoannahsetmessages: + msg368889
2020-05-12 00:45:57nanjekyejoannahsetkeywords: + patch
nosy: + nanjekyejoannah

pull_requests: + pull_request19356
stage: patch review
2020-05-10 23:12:20mbussonnsetmessages: + msg368596
2020-05-10 22:30:50mbussonnsetnosy: + mbussonn
2020-02-20 04:45:06Ananthakrishnansetnosy: + Ananthakrishnan
messages: + msg362297
2019-11-21 01:14:06cheryl.sabellacreate