Idiom for running compiled python scripts?

Steve Holden steve at
Fri Mar 23 02:14:30 CET 2007

Mark wrote:
> So given the lack of response it seems that there is probably no such
> idiom and that I should not be concerned by the inefficiency inherent in
> running .py scripts directly?
> I did some time tests and sure, the speed gain is slight, but it is a 
> gain none the less.

Someone already told you - compile the files manually (see the compile 
built-in function) and then use

   python file.pyc

Steve Holden       +44 150 684 7255  +1 800 494 3119
Holden Web LLC/Ltd
Skype: holdenweb
Recent Ramblings

More information about the Python-list mailing list