catching exceptions from an except: block

Marc 'BlackJack' Rintsch bj_666 at
Wed Mar 7 21:30:52 CET 2007

In <1173295587.143018.102220 at>, Miki wrote:

> Exceptions are for error handling, not flow control.

That's not true, they are *exceptions* not *errors*.  They are meant to
signal exceptional situations.  And at least under the cover it's used in
every ``for``-loop because the end condition is signaled by a
`StopIteration` exception.  Looks like flow control to me.

	Marc 'BlackJack' Rintsch

More information about the Python-list mailing list