I have read this statement that the interpreter directly executes the code. But I am not sure I understand what it means. I have been trying to get a good article on the execution cycle of python code.
I understand that the python code is converted to byte code and fed to the interpreter. So what happens next? Can someone explain clearly the steps that goes into it, especially in relation between the byte code, interpreter, OS and CPU?
Something along the lines of...
Edited for clarity: My basic confusion is if CPU is what is executing the code, then what is meaning of saying 'the interpreter executes the code'?
That statement is a massive hand-waving over the whole process. Here's how it goes, try to keep up:
The CPU never sees the bytecode as anything but data, and it does not need to see it any other way.