homepage

This issue tracker has been migrated to GitHub , and is currently read-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.

Author dlenski
Recipients benjamin.peterson, dlenski, iritkatriel, xtreak
Date 2021年06月21日.21:14:18
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1624310058.31.0.636783747856.issue30238@roundup.psfhosted.org>
In-reply-to
Content
> There is no way to know through static analysis that the subscript is on an object of type exception. I think this should be closed as won't fix.
In almost all cases, the variable in question will receive its value via `except ... as e:`.
 try:
 ...
 except (Exception1, Exception2, ...) as e:
 e[0]
Seems to me that it should be possible for 2to3 to handle this large subset of applicable cases via static analysis.
History
Date User Action Args
2021年06月21日 21:14:18dlenskisetrecipients: + dlenski, benjamin.peterson, xtreak, iritkatriel
2021年06月21日 21:14:18dlenskisetmessageid: <1624310058.31.0.636783747856.issue30238@roundup.psfhosted.org>
2021年06月21日 21:14:18dlenskilinkissue30238 messages
2021年06月21日 21:14:18dlenskicreate

AltStyle によって変換されたページ (->オリジナル) /