How to break out of two nested for loops?
Mark Hammond
mhammond at skippinet.com.au
Fri Jan 25 18:55:14 EST 2002
Alex Martelli wrote:
> "Laura Creighton" <lac at strakt.com> wrote in message
> news:mailman.1011889735.22267.python-list at python.org...
>
>>Last night I got to thinking that instead of _except_
>>what I would like as the keyword is _discover_
> Cool. Or maybe 'expect' -- a mental-typo I do make
> sometimes for 'except' when I am _expecting_ the
> _exception_ to happen...:-).
Actually, I think "expect" is perfect, and have indeed made the same
typo. The exception is obviously expected by virtue of the handler.
And an unqualified handler could use
expect the unexpected:
...
Mark.
More information about the Python-list
mailing list