Python PyCompile

py_compile is an executable script for compiling Python byte code, especially to check for syntax errors.


Installation

py_compile is included in all Python installations.


Usage

Try:

python -m py_compile example.py

Alternatively, try:

echo example.py | python -m py_compile -


See also

Python py_compile module documentation


CategoryRicottone

Python/PyCompile (last edited 2024-02-17 16:38:10 by DominicRicottone)