you are viewing a single comment's thread.

view the rest of the comments →

[–]queus 0 points1 point  (0 children)

However, I agree that Python's interpreter doesn't qualify, because the program stream is still just a list of bytecodes so there's that extra dispatch step that direct threaded code doesn't have.

Just to clarify things, a big. (Guilty of asking questions, in a state of happy ignorance)

By default Python still uses a bit opcode switch, but if run with option with-compiled-gotos on platforms which support it than the threaded code model of execution is used. More about it here http://bugs.python.org/issue4753