codeop
codeop — Compile Python code
The codeop
module provides utilities upon which the Python read-eval-print loop can be emulated, as is done in the code
module. As a result, you probably don’t want to use the module directly; if you want to include such a loop in your program you probably want to use the code
module instead.
There are two parts to this job:
- Being able to tell if a line of input completes a Python statement: in short, tell