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 ammar2
Recipients ammar2, pasenor, rhettinger
Date 2020-04-02.10:43:41
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1585824221.84.0.270339917989.issue39865@roundup.psfhosted.org>
In-reply-to
Content
Update: opened up https://github.com/python/cpython/pull/19303 as a quick first pass at implementing this. It works as expected and retains the context from the original exception just in case it's needed. The code isn't too pretty, looks like exception chaining was primarily designed to be a first class citizen using the `raise e2 from e` syntax. A helper in exceptions.c would definitely go a long way to making it more readable.
History
Date User Action Args
2020-04-02 10:43:41ammar2setrecipients: + ammar2, rhettinger, pasenor
2020-04-02 10:43:41ammar2setmessageid: <1585824221.84.0.270339917989.issue39865@roundup.psfhosted.org>
2020-04-02 10:43:41ammar2linkissue39865 messages
2020-04-02 10:43:41ammar2create