Differences between revisions 1 and 2
Revision 1 as of 2024-02-17 16:30:47
Size: 435
Comment: Initial commit
Revision 2 as of 2024-02-17 16:32:22
Size: 441
Comment: Title
Deletions are marked like this. Additions are marked like this.
Line 1: Line 1:
= py_compile = = Python PyCompile =

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 -


CategoryRicottone

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