I have it drilled into my head that (at least in PHP) it is badbadmojo to use try... catch
blocks for flow control. What I\'ve learned is to use them only to h
There's a specific exception that is only supposed to be used in normal execution flow: StopIteration
. This implies to me that Python's creator doesn't think exception overhead is out of line.
Whether this is because exception handling is uber-efficient or the rest of the language is just slow by comparison is another question...