STINNER Victor added the comment: If a new exception is raised by _PyTraceback_Add(), the original exception is lost. It's sad because _PyTraceback_Add() is supposed to enhance the current exception, not to drop it.
In the draft of my PEP 490, I propose to chain the two exceptions. ---------- _______________________________________ Python tracker <rep...@bugs.python.org> <http://bugs.python.org/issue23782> _______________________________________ _______________________________________________ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com