[Python-ideas] Python-ideas Digest, Vol 93, Issue 31

Greg Ewing greg.ewing at canterbury.ac.nz
Thu Aug 14 03:33:16 CEST 2014


On 08/14/2014 12:59 PM, Raymond Hettinger wrote:
>
> I would really like for the annotations to grow some way
> to communicate exceptions as well as return types

I'd hate for exception typing to be compulsory, though,
since that turned out to be extremely annoying in Java.

It would be even worse in Python, since there's no
branch of the exception hierarchy corresponding to
Java's RuntimeError for things that can be raised
from anywhere.

-- 
Greg



More information about the Python-ideas mailing list