question about a command like 'goto ' in Python's bytecode orit's just a compiler optimization?

pdpi pdpinheiro at
Wed Jun 17 12:18:27 CEST 2009

On Jun 17, 9:01 am, "Hendrik van Rooyen" <m... at> wrote:
>  "Diez B. Roggisch" <d.. at> wrote:
> > Getting a depression because of a compiler is a bit strong...
> > However, yes, bytecode is similar to assembler, and in that respect
> > higher-level control-structures are created using (conditional) jumps.
> > The same is true for other bytecode-languages, see here for the JVM:
> >
> This is right.
> It is my opinion that it is not possible to make a useful machine,
> virtual or real, which executes instructions sequentially, if the
> instruction set does not contain a conditional jump of some sort.
> I have tried doing it using conditional calls, and it fails on
> the equivalent of the first if ..., elif ...  you try to write.
> - Hendrik

Not a matter of opinion. One of the requisite elements of a Turing
Machine is conditional jumping.

More information about the Python-list mailing list