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 carljm, ncoghlan
Date 2018-05-19.12:40:14
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1526733614.89.0.682650639539.issue33576@psf.upfronthosting.co.za>
In-reply-to
Content
Hmm, I wonder if the UX problem with the current chaining might be solved in a different way, by doing something similar to what we did for codec exceptions (where we want to try to mention the codec name, but also don't want to change the exception type, and want to include the original exception text in the wrapper's message).

The codecs related call is at https://github.com/python/cpython/blob/0c1c4563a65ac451021d927058e4f25013934eb2/Python/codecs.c#L389 but most of the heavy lifting has since been refactored out into the _PyErr_TrySetFromCause helper function: https://github.com/python/cpython/blob/55edd0c185ad2d895b5d73e47d67049bc156b654/Objects/exceptions.c#L2713
History
Date User Action Args
2018-05-19 12:40:14ncoghlansetrecipients: + ncoghlan, carljm
2018-05-19 12:40:14ncoghlansetmessageid: <1526733614.89.0.682650639539.issue33576@psf.upfronthosting.co.za>
2018-05-19 12:40:14ncoghlanlinkissue33576 messages
2018-05-19 12:40:14ncoghlancreate