Re: Calling Python from Python and .pyc problem

2008-11-08 Thread Tim Roberts
David Shi [EMAIL PROTECTED] wrote: Hello, there.I am using Python 2.5. I used py_compile and made a .pyc file. Just in case the advice from Terry was too subtle, I'd like to spell it out. Python scripts do not need to be compiled. The interpreter runs the .py file directly. However, it runs

Calling Python from Python and .pyc problem

2008-11-07 Thread David Shi
Hello, there.I am using Python 2.5. I used py_compile and made a .pyc file. However, it runs but never stops. What is the best way tocompile a .py file.I am trying to customise the attached script to do the following:calling an external Python script and passing parameters into it.And run

Re: Calling Python from Python and .pyc problem

2008-11-07 Thread Terry Reedy
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

Re: Calling Python from Python and .pyc problem

2008-11-07 Thread Steve Holden
Terry Reedy wrote: 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