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 ncoghlan
Date 2012-05-14.12:00:38
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1336996839.56.0.43377861765.issue14805@psf.upfronthosting.co.za>
In-reply-to
Content
With PEP 415 accepted as the implementation of the "raise exc from None" syntax, it raises the prospect of exceptions with both __cause__ and __context__ set to non-None values, and __suppress_context__ set to False.

The initial PEP 415 patch treats this case the same way PEP 409 did: it ignores __context__ if *either* __cause__ is not None *or* __suppress_context__ is True.

This issue proposes that at least the default exception display routine and the display routine in the traceback module be updated to display the __context__ any time __suppress_context__ is False, even if __cause__ is also non-None.
History
Date User Action Args
2012-05-14 12:00:39ncoghlansetrecipients: + ncoghlan
2012-05-14 12:00:39ncoghlansetmessageid: <1336996839.56.0.43377861765.issue14805@psf.upfronthosting.co.za>
2012-05-14 12:00:38ncoghlanlinkissue14805 messages
2012-05-14 12:00:38ncoghlancreate