Python and checked exceptions
Diez B. Roggisch
deets at nospam.web.de
Sat Sep 23 09:24:56 EDT 2006
>> This might be of practical interest for some and theoretical interest
>> for others - in particular those who know checked ex as a language
>> feature of Java.
>
> The trouble with having to declare every possible exception that a
> function might throw is that it rapidly turns into a complete mess. That's
> why such declarations are optional in C++, and only semi-mandatory in
> Java.
I agree with you that they are a mess, and I usually wrap them
RuntimeExceptions.
Why do you call them semi-mandatory?
diez
More information about the Python-list
mailing list