mirror of
https://github.com/python/cpython.git
synced 2025-08-04 17:08:35 +00:00
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>
This commit is contained in:
parent
4b972faf60
commit
7ba1f75f3f
3 changed files with 7 additions and 5 deletions
|
@ -56,8 +56,8 @@ build applications which provide an interactive interpreter prompt.
|
|||
|
||||
*source* is the source string; *filename* is the optional filename from which
|
||||
source was read, defaulting to ``'<input>'``; and *symbol* is the optional
|
||||
grammar start symbol, which should be either ``'single'`` (the default) or
|
||||
``'eval'``.
|
||||
grammar start symbol, which should be ``'single'`` (the default), ``'eval'``
|
||||
or ``'exec'``.
|
||||
|
||||
Returns a code object (the same as ``compile(source, filename, symbol)``) if the
|
||||
command is complete and valid; ``None`` if the command is incomplete; raises
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue