[issue23188] Provide a C helper function to chain raised (but not yet caught) exceptions

Chris Jerdonek report at bugs.python.org
Fri May 22 18:04:09 EDT 2020


Chris Jerdonek <chris.jerdonek at gmail.com> added the comment:

I just want to point out one difference between _PyErr_ChainExceptions and PyErr_SetObject that I encountered while working on this issue:
https://bugs.python.org/issue40696

While both functions set the context, only PyErr_SetObject does a check to prevent cycles from forming in the context chain (albeit an incomplete check, which can lead to hangs, which I mention in the issue linked above).

----------

_______________________________________
Python tracker <report at bugs.python.org>
<https://bugs.python.org/issue23188>
_______________________________________


More information about the Python-bugs-list mailing list