On Fri, Sep 25, 2020 at 4:25 PM Sergio Fenoll <ser...@fenoll.be> 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 -- python-ideas@python.org To unsubscribe send an email to python-ideas-le...@python.org https://mail.python.org/mailman3/lists/python-ideas.python.org/ Message archived at https://mail.python.org/archives/list/python-ideas@python.org/message/L6M7WROB7FF7SPMPY7DPRW2ZQP4ISR4F/ Code of Conduct: http://python.org/psf/codeofconduct/