5 ms·
Python executes, it does not compiles. EDIT: Whoops, it's actually compiled into bytecode then executed by the VM.
by Artemis2 13y ago
Python executes, it does not compiles.
EDIT: Whoops, it's actually compiled into bytecode then executed by the VM.
- the_paul 13y agoThis is not true.
- runjake 13y agoAs the_paul said, this is incorrect. https://en.wikipedia.org/wiki/Python_(programming_language)#Implementations https://en.wikipedia.org/wiki/Python_(programming_language)#...
- mimighost 13y agoIt actually "compiles" into bytecode, then consumed by the interpreter.
- Pxtl 13y agoit's generous to call the CPython interpreter a VM - the binary encoding of Python isn't some crazy IL bytecode, its' really just python-as-binary. Language constructs converted into opcodes, strings with pre-calculated hashes, and local variables within a scope become a sort of vector... but otherwise, it's a prettymuch 1:1 mapping between Python language constructs and the bytecode form.