How to break out of two nested for loops?

Bengt Richter bokr at oz.net
Thu Jan 24 19:21:09 EST 2002


On Thu, 24 Jan 2002 17:27:31 +0100, Laura Creighton <lac at strakt.com> wrote:

>Last night I got to thinking that instead of _except_
>what I would like as the keyword is _discover_
>
>(just in case any of you plan to write any languages this year ....)
>
What made you think of 'discover'?

How about catch ;-)
Or plain 'on' ?

try:
   f=open('xxx','r')
on IOError, e:
   print e




More information about the Python-list mailing list