.pyc keeps running and never stops

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

Shao wrote:
> Dear All,
> I am using Python 2.5 and used py_compile to produce a .pyc file.  The
> script runs well.  However, the .pyc keeps running and never stops.
> Advices will be deeply appreciated.

You have either an infinite loop or a computation that runs longer than 
your patience.  If I could not immediately see the problem, I would 
probably sprinkle the code with print statements 'here1', 'here2'...
to find the problem area.

More information about the Python-list mailing list