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
3
u/commenda Jan 30 '20
also, at my office for example, that's all I have.
It took me 3 years to get even just nano+python3.6. So I'm not gonna bother to try and convince boneheaded IT to install Pycharm on my PC. So thanks for the suggestion OP.