Idiom for running compiled python scripts?

Mark mark at mailinator.com
Sat Mar 24 18:59:06 EDT 2007


On Sat, 24 Mar 2007 07:21:21 -0700, irstas wrote:
> Also, rstrip doesn't work like you think it does.
> 'pyxyypp.py'.rstrip('.py') == 'pyx'

Well there is embarrassing confirmation that I am a python newbie :(

> I timed it against running plain .py and running .pyc directly. It
> seemed to be roughly on par with running .pyc directly, and about 18ms
> faster than running .py. The file had 600 lines (21kb) of code.

So see my point at least? I'm still not sure why this approach is
ill-favoured?

Thanks very much for all the detailed responses here.



More information about the Python-list mailing list