osdir.com


[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

clever exit of nested loops


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