Calling Python from Python and .pyc problem

Terry Reedy tjreedy at udel.edu
Fri Nov 7 21:21:05 CET 2008


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.




More information about the Python-list mailing list