oops, stand corrected. I was under the impression that an exception
would break out of the current expression and forgot that the "for"
would contain it(that StopIteration is a condition to it expects to
stop it).

thanks, this is the functionality I am looking for.

Alex Martelli wrote:
> Can you give one example where this stop() function wouldn't work and
> your hypothetical ``when'' would?  I don't see how "it breaks out of the
> whole thing expression" -- it terminates ONE for-clause (and what else
> would your cherished ``when'' do?).
> 
> 
> Alex

-- 
http://mail.python.org/mailman/listinfo/python-list

Reply via email to