David Shi wrote: > Hello, there. > > I am using Python 2.5. I used py_compile and made a .pyc file. No need usually. > However, it runs but never stops. What is the best way to > > compile a .py file. When you run a .py file, it automatically compiles and write a .pyc file if there is no .pyc file or if the .py is newer than the .pyc.