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 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.
History
Date User Action Args
2012-07-29 10:36:50ncoghlansetrecipients: + ncoghlan, brett.cannon, georg.brandl, amaury.forgeotdarc, pitrou, python-dev, eric.snow
2012-07-29 10:36:50ncoghlansetmessageid: <1343558210.67.0.674496129458.issue15425@psf.upfronthosting.co.za>
2012-07-29 10:36:50ncoghlanlinkissue15425 messages
2012-07-29 10:36:50ncoghlancreate