25 Sep
2020
25 Sep
'20
1:41 a.m.
On Fri, Sep 25, 2020 at 4:25 PM Sergio Fenoll
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