r/learnpython • • Mar 06 '15

Is python a machine level language?

I'm still learning high-level programming languages (currently C# & Ruby) but eventually want to move to something that is more directly involved with the actual processor & memory. I've seen alot of languages that claim to be compilation code & ever-so-powerful but still need a VM or some kind of translator to actually execute (COUGH COUGH JAVA). so id like to know, would python at all be considered compilation code?

0 Upvotes

18 comments sorted by

View all comments

1

u/Kerbobotat Mar 06 '15

Python is an interpreted language, at run time the code is translated to low level byte code (machine code) ad opposed to a compiled language, like c++ which is 'built' or compiled into a executable program. IIRC you can compile python using something like py2exe or Cython (compiles python to C) interpreted languages have more "steps" to execution, and can be significantly slower than compiled programs.

4

u/[deleted] Mar 06 '15

py2exe does not really compile the software. AFAIK it is just a packer, that extracts and runs a normal Python program.