Message166743
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. |
|
Date |
User |
Action |
Args |
2012-07-29 10:36:50 | ncoghlan | set | recipients:
+ ncoghlan, brett.cannon, georg.brandl, amaury.forgeotdarc, pitrou, python-dev, eric.snow |
2012-07-29 10:36:50 | ncoghlan | set | messageid: <1343558210.67.0.674496129458.issue15425@psf.upfronthosting.co.za> |
2012-07-29 10:36:50 | ncoghlan | link | issue15425 messages |
2012-07-29 10:36:50 | ncoghlan | create | |
|