[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
More information about the Python-Dev mailing list
Sun Jun 18 22:10:00 CEST 2006
- Previous message: [Python-Dev] An obscene computed goto bytecode hack for "switch" :)
- Next message: [Python-Dev] setobject code
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
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.
- Previous message: [Python-Dev] An obscene computed goto bytecode hack for "switch" :)
- Next message: [Python-Dev] setobject code
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
More information about the Python-Dev mailing list