How to break out of two nested for loops?
mhammond at skippinet.com.au
Sat Jan 26 00:55:14 CET 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:
More information about the Python-list