clever exit of nested loops

Gregory Ewing greg.ewing at canterbury.ac.nz
Thu Sep 27 19:43:21 EDT 2018


Neal Becker wrote:
> but it does violate the principle "Exceptions should 
> be used for exceptional conditions).

Python doesn't really go in for that philosophy.
Exceptions are often used for flow control, e.g.
StopIteration.

-- 
Greg



More information about the Python-list mailing list