Does python always need to compile ENTIRE program before it can start to run it???
Piet van Oostrum
piet at cs.uu.nl
Sun Nov 9 08:58:35 EST 2003
>>>>> "James Kew" <james.kew at btinternet.com> (JK) wrote:
JK> "John Roth" <newsgroups at jhrothjr.com> wrote in message
JK> news:vqdamhn2pq1qaf at news.supernews.com...
>> I've never
>> gotten a satisfactory explanation of why it doesn't save the compiled
>> version of the top level script, but then, I've never really looked
>> into it. It's just curious.
JK> I've always wondered that too. The top-level script _might_ be standard
JK> input or command-line, but it seems to me that it often (usually?) is a .py
JK> which _could_ be stashed into a .pyc.
And then? Next time you call again python script.py, not script.pyc.
That's the difference with import: import says `import script', not `import
script.py'.
--
Piet van Oostrum <piet at cs.uu.nl>
URL: http://www.cs.uu.nl/~piet [PGP]
Private email: P.van.Oostrum at hccnet.nl
More information about the Python-list
mailing list