Python compilation ??
cam.ac.uk at mh391.invalid
Mon Jul 2 22:23:38 CEST 2007
Steve Holden wrote:
> Evan Klitzke wrote:
>> On 7/2/07, Cathy Murphy <cathy at nachofoto.com> wrote:
>>> Is python a compiler language or interpreted language. If it is
>>> , then why do we have to compile it?
>> It's an interpreted language. It is compiled into bytecode (not
>> machine code) the first time a script is run to speed up subsequent
>> executions of a script.
> While the flavor of this answer is correct, in strict point of fact
> Python *doesn't* compile the scripts it executes, only the modules that
> are imported.
I think you mean that CPython doesn't save the results of the
compilation of a script. The scripts are compiled every time they are
run, as you go on to say.
More information about the Python-list