[Python-ideas] except expression
Greg Ewing
greg.ewing at canterbury.ac.nz
Tue Feb 18 23:02:44 CET 2014
Alexander Belopolsky wrote:
> - ArithmeticError
> - AttributeError
> - LookupError
> - TypeError ?
> - ValueError ?
I'd also include EnvironmentError.
I wouldn't include TypeError -- that's much more likely
to indicate a bug.
But this list is getting rather long, which makes me
think it's not such a good idea to have a default
exception list after all.
(BTW, why doesn't ArithmeticError inherit from ValueError?)
--
Greg
More information about the Python-ideas
mailing list