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.

Title: Add private _PyErr_ReplaceException() in 2.7
Type: enhancement Stage: resolved
Components: Interpreter Core Versions: Python 2.7
Status: closed Resolution: fixed
Dependencies: Superseder:
Assigned To: serhiy.storchaka Nosy List: python-dev, serhiy.storchaka, vstinner
Priority: normal Keywords: patch

Created on 2015-03-26 09:49 by serhiy.storchaka, last changed 2022-04-11 14:58 by admin. This issue is now closed.

File name Uploaded Description Edit
capi_PyErr_ReplaceException.patch serhiy.storchaka, 2015-03-26 09:49 review
Messages (3)
msg239317 - (view) Author: Serhiy Storchaka (serhiy.storchaka) * (Python committer) Date: 2015-03-26 09:49
Proposed patch adds internal private function _PyErr_ReplaceException() in 2.7. This functions is like _PyErr_ChainExceptions() in 3.x, but doesn't set the context. It makes the code of 2.x simpler and more similar to 3.x and makes the backporting from 3.x easier.
msg239318 - (view) Author: STINNER Victor (vstinner) * (Python committer) Date: 2015-03-26 09:52
FIY I'm working on a draft of new PEP to chain exceptions at C level: PEP 490.
msg239574 - (view) Author: Roundup Robot (python-dev) (Python triager) Date: 2015-03-30 07:01
New changeset c76a1a42799c by Serhiy Storchaka in branch '2.7':
Issue #23781: Add private helper function _PyErr_ReplaceException() that
Date User Action Args
2022-04-11 14:58:14adminsetgithub: 67969
2015-03-30 07:04:19serhiy.storchakasetstatus: open -> closed
assignee: serhiy.storchaka
resolution: fixed
stage: patch review -> resolved
2015-03-30 07:01:49python-devsetnosy: + python-dev
messages: + msg239574
2015-03-26 09:52:48vstinnersetmessages: + msg239318
2015-03-26 09:49:48serhiy.storchakacreate