Open
Description
I think we should just
import pywintypes
and then use it explicitly likeexcept pywintypes.error as e:
. I agree it is very unclear (and I did not knowerror
is a legit exception type).
Originally posted by @leofang in #625 (comment)
I like Google's Python style guide on this part:
https://google.github.io/styleguide/pyguide.html#22-imports
Use import statements for packages and modules only, not for individual types, classes, or functions.