Working around a lack of 'goto' in python

Roy Smith roy at panix.com
Mon Mar 8 03:11:14 CET 2004


In article <miksh1-coa.ln1 at home.rogerbinns.com>,
 "Roger Binns" <rogerb at rogerbinns.com> wrote:

> Brett wrote:
> > Two areas where I've found 'goto' two be useful in other languages are in
> > (untested examples in C++)
> 
> What you have is what many other languages allow with integers after break or
> continue statements.  For example you can do 'break 2' or 'continue 3' to
> break or continue out of the respective number of enclosing for loops.

Yuck.  Bletch.  Barf.



More information about the Python-list mailing list