Idiom for running compiled python scripts?
Steve Holden
steve at holdenweb.com
Thu Mar 22 21:14:30 EDT 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
regards
Steve
--
Steve Holden +44 150 684 7255 +1 800 494 3119
Holden Web LLC/Ltd http://www.holdenweb.com
Skype: holdenweb http://del.icio.us/steve.holden
Recent Ramblings http://holdenweb.blogspot.com
More information about the Python-list
mailing list