r/pythontips • u/MonkHaus • Jan 30 '20
Python Command line
To catch any syntax errors before executing large time consuming scripts you can run the following from your command line
python3 -m py_compile my_script.py
38
Upvotes
r/pythontips • u/MonkHaus • Jan 30 '20
To catch any syntax errors before executing large time consuming scripts you can run the following from your command line
python3 -m py_compile my_script.py
4
u/MonkHaus Jan 30 '20
But text editor + cli is more fun :/