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 eric.snow
Recipients brett.cannon, eric.snow
Date 2013-11-22.18:36:50
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1385145410.42.0.284273410583.issue19720@psf.upfronthosting.co.za>
In-reply-to
Content
Some exceptions in importlib are raised from within except blocks, resulting in chained tracebacks. [1]  For at least some of these we should consider suppressing the exception context.

For example (for [1]):

        try:
            path = parent_module.__path__
        except AttributeError:
            msg = (_ERR_MSG + '; {} is not a package').format(name, parent)
            raise ImportError(msg, name=name) from None

[1] http://hg.python.org/cpython/file/default/Lib/importlib/_bootstrap.py#l2088
History
Date User Action Args
2013-11-22 18:36:50eric.snowsetrecipients: + eric.snow, brett.cannon
2013-11-22 18:36:50eric.snowsetmessageid: <1385145410.42.0.284273410583.issue19720@psf.upfronthosting.co.za>
2013-11-22 18:36:50eric.snowlinkissue19720 messages
2013-11-22 18:36:50eric.snowcreate