Very Horrible Question About Goto's
Michael Hudson
mwh21 at cam.ac.uk
Wed Apr 19 11:43:54 EDT 2000
Gaetan Corneau <corg at copernic.com> writes:
> I was surprised to learn that Python doesn't have a goto statement.
> Would it be difficult to add?
No. The necessary opcodes are there (well, the one you need:
JUMP_ABSOLUTE). You could use bytecodehacks to implement it, if you
liked...
I doubt it's a good idea though.
Cheers,
M.
--
"declare"? my bogometer indicates that you're really programming
in some other language and trying to force Common Lisp into your
mindset. this won't work. -- Erik Naggum, comp.lang.lisp
More information about the Python-list
mailing list