Message160609
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. |
|
Date |
User |
Action |
Args |
2012-05-14 12:00:39 | ncoghlan | set | recipients:
+ ncoghlan |
2012-05-14 12:00:39 | ncoghlan | set | messageid: <1336996839.56.0.43377861765.issue14805@psf.upfronthosting.co.za> |
2012-05-14 12:00:38 | ncoghlan | link | issue14805 messages |
2012-05-14 12:00:38 | ncoghlan | create | |
|