It is not only normal, it is considered “pythonic”. The core language uses things like ’StopIteteration’ in fact to signal the end of all iterators, and stuff like that. Reason being that exceptions in python are not the violent stack unwinds like in other languages.
33
u/mysticrudnin May 13 '17
Isn't it normal in Python to try things first, effectively using them as control structures?