How to break out of two nested for loops?

Mark Hammond mhammond at skippinet.com.au
Thu Jan 24 18:57:21 EST 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:

[Aahz]
 > 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.

Mark.




More information about the Python-list mailing list