Q: break multiple loop

Phlip phlip_cpp at my-deja.com
Sat Feb 17 12:20:25 EST 2001


Proclaimed hwan-jo yu from the mountaintops:

> Hi,
> It seems that there is now "goto" statement in the python.
> How can we terminate multiple for or while loop ?

        return

The rule "no absurdly long functions" trumps the rule "goto is the root of 
all evil". But it would be hard for a language to enforce the former. Show 
some discipline!

-- 
  Phlip                          phlip_cpp at my-deja.com
============ http://c2.com/cgi/wiki?PhlIp ============
  --  This machine last rebooted during the Second Millenium  --



More information about the Python-list mailing list