On 26/09/20 7:26 am, Oscar Benjamin wrote:
The suggestion ... was not that it would be a
type-checking error to call the inverse function without catching the
exception. It only becomes a type-checking error if a function calls
the inverse function and claims not to raise the exception.

This isn't very coherent. We've agreed that the declared exceptions
is not an exhaustive list of the exceptions that may be raised. So
not declaring an exception is *not* claiming not to raise it!

--
Greg
_______________________________________________
Python-ideas mailing list -- [email protected]
To unsubscribe send an email to [email protected]
https://mail.python.org/mailman3/lists/python-ideas.python.org/
Message archived at 
https://mail.python.org/archives/list/[email protected]/message/6GJ5ZW3K52SYUT3RDDMYAW6WQUSQ5SAM/
Code of Conduct: http://python.org/psf/codeofconduct/

Reply via email to