diff options
author | 2020-05-14 21:59:46 -0300 | |
---|---|---|
committer | 2020-05-14 21:59:46 -0300 | |
commit | 7ba1f75f3f02b4b50ac6d7e17d15e467afa36aac (patch) | |
tree | 539bc15676c05fa62b4f68e208af44e7cc3b828d /Lib/codeop.py | |
parent | bpo-40462: Fix typo in test_json (GH-20094) (diff) | |
download | cpython-7ba1f75f3f02b4b50ac6d7e17d15e467afa36aac.tar.gz cpython-7ba1f75f3f02b4b50ac6d7e17d15e467afa36aac.tar.bz2 cpython-7ba1f75f3f02b4b50ac6d7e17d15e467afa36aac.zip |
bpo-38872: Document exec symbol for codeop.compile_command (GH-20047)
* Document exec symbol for codeop.compile_command
* Remove extra statements
Co-authored-by: nanjekyejoannah <joannah.nanjekye@ibm.com>
Diffstat (limited to 'Lib/codeop.py')
-rw-r--r-- | Lib/codeop.py | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/Lib/codeop.py b/Lib/codeop.py index 082285f94fe..835e68c09ba 100644 --- a/Lib/codeop.py +++ b/Lib/codeop.py @@ -112,7 +112,8 @@ def compile_command(source, filename="<input>", symbol="single"): source -- the source string; may contain \n characters filename -- optional filename from which source was read; default "<input>" - symbol -- optional grammar start symbol; "single" (default) or "eval" + symbol -- optional grammar start symbol; "single" (default), "exec" + or "eval" Return value / exceptions raised: |