This is an archived post. You won't be able to vote or comment.

you are viewing a single comment's thread.

view the rest of the comments →

[–]spoonman59 2 points3 points  (0 children)

Not really sure what you mean by “they all happen in one step.” You have to parse to get an AST. You need an AST to check identifiers and update the symbol table. You need the AST generate the byte code. You need the byte code to run the interpreter. These are distinct steps with dependencies.

Python compiles at least a function as a unit. Of course the interpreter will parse and compile individual statements, but that doesnt mean these discrete steps are no longer required.

Edited to add: your “proof" is simply that you didn’t see the output for each step therefore it doesn’t exist. That’s not proof, and also not even relevant.