[Python-Dev] An obscene computed goto bytecode hack for "switch" :)
Phillip J. Eby
pje at telecommunity.com
Sun Jun 18 22:10:00 CEST 2006
At 11:23 AM 6/18/2006 -0700, Guido van Rossum wrote:
>I'm not in favor of abusing this to generate a computed goto, and I
>don't see a need for that -- if we decide to add that (either as
>syntax or as an automatic optimization) I see no problem adding a new
>bytecode.
Me either -- I suggest simply adding a JUMP_TOP -- but I wanted to point
out that people wouldn't need to add a new opcode in order to experiment
with possible "switch" syntaxes.
More information about the Python-Dev
mailing list