30.2. codeop Python
codeop code Python read-eval-print code
:
- Python: '
>>>' '...' - future
:
-
codeop.compile_command(source, filename="<input>", symbol="single") Python source source Python
'<input>'filename source Python PythonNonesource Python
SyntaxErrorOverflowErrorValueErrorsymbol source (
'single') ('eval')ValueError2API
-
class
codeop.CommandCompiler compile_command()__call__()__future__