translating Python to Assembler

Bjoern Schliessmann usenet-mail-0306.20.chr0n0ss at spamgourmet.com
Thu Jan 24 10:14:28 EST 2008


Tim Roberts wrote:
> Bjoern Schliessmann <usenet-mail-0306.20.chr0n0ss at spamgourmet.com>

>> So, how do processors execute Python scripts? :)
> 
> Is that a rhetorical question?  

A little bit.

> Grant is quite correct; Python scripts (in the canonical CPython)
> are NOT compiled into assembly language.  Scripts are compiled to
> an intermediate language.  Processors execute Python scripts when
> the interpreter, written in a high-level language and compiled to
> assembly, interprets the intermediate language created by the
> Python "compiler".

So in the end, the program defined in the Python script _is_
compiled to the CPU's language. But never mind, it depends on how
you define "compile" in the end.

Regards,


Björn

-- 
BOFH excuse #225:

It's those computer people in X {city of world}.  They keep stuffing
things up.




More information about the Python-list mailing list