On Fri, Sep 25, 2020 at 4:25 PM Sergio Fenoll <[email protected]> wrote:
> What I had in mind was that an IDE could use this information to show
> autocomplete options when writing except blocks. The other day I was
> writing some code like this:
>
> import requests
>
> try:
>
>      requests.get('https://python.org')
>
> except WhateverExceptionTheRequestsLibraryRaises:
>
>      pass
>

It would have to not only look at get(), but everything that it calls.
Either that, or you're back to the Java thing of "catch it or declare
it", and we've seen from Java that that's a bad idea.

ChrisA
_______________________________________________
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/L6M7WROB7FF7SPMPY7DPRW2ZQP4ISR4F/
Code of Conduct: http://python.org/psf/codeofconduct/

Reply via email to