Message166743
| Author |
ncoghlan |
| Recipients |
amaury.forgeotdarc, brett.cannon, eric.snow, georg.brandl, ncoghlan, pitrou, python-dev |
| Date |
2012年07月29日.10:36:50 |
| SpamBayes Score |
-1.0 |
| Marked as misclassified |
Yes |
| Message-id |
<1343558210.67.0.674496129458.issue15425@psf.upfronthosting.co.za> |
| In-reply-to |
| Content |
I think the implementation I just checked in is close to being as simple as we can get:
Blocks ending in _exec_module and _recursive_import are trimmed unconditionally
For SyntaxError, it also trims blocks ending in get_code
For ImportError, it trims everything involving importlib
Because the latter two are conditional on the kind of exception thrown, it's only the first two that could be unified and I think keeping the two distinct checks is actually clearer in that case. |
|