[issue23781] Add private _PyErr_ReplaceException() in 2.7

2015-03-30 Thread Serhiy Storchaka
Changes by Serhiy Storchaka : -- assignee: -> serhiy.storchaka resolution: -> fixed stage: patch review -> resolved status: open -> closed ___ Python tracker ___ __

[issue23781] Add private _PyErr_ReplaceException() in 2.7

2015-03-30 Thread Roundup Robot
Roundup Robot added the comment: New changeset c76a1a42799c by Serhiy Storchaka in branch '2.7': Issue #23781: Add private helper function _PyErr_ReplaceException() that https://hg.python.org/cpython/rev/c76a1a42799c -- nosy: +python-dev ___ Python tr

[issue23781] Add private _PyErr_ReplaceException() in 2.7

2015-03-26 Thread STINNER Victor
STINNER Victor added the comment: FIY I'm working on a draft of new PEP to chain exceptions at C level: PEP 490. -- ___ Python tracker ___ ___

[issue23781] Add private _PyErr_ReplaceException() in 2.7

2015-03-26 Thread Serhiy Storchaka
New submission from Serhiy Storchaka: 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