How to break out of two nested for loops?
mhammond at skippinet.com.au
Fri Jan 25 00:57:21 CET 2002
Justin Sheehy wrote:
> Paul Prescod <paul at prescod.net> writes:
>>>The for-loop construct in Python uses exceptions for termination. Doing
>>>so by hand is clearly in line with language idiom.
>>Python's implementation also makes use of "goto" quite a bit.
> I was referring to the language as exposed to the programmer, not
> to intepreter internals. I believe that this was clear from the
> context around this quoted snippet.
However, the message Paul quoted from was originally a reply to Aahz's:
> That's an attitude. It's an incorrect attitude, but it's one
> you share with a fair number of people. You might want to
> check up on the workings of the for loop.
Paul was probably assuming this context remained.
More information about the Python-list