[issue23902] let exception react to being raised or the setting of magic properties (like __cause__) within Python

Irit Katriel report at bugs.python.org
Wed Oct 20 20:01:46 EDT 2021


Irit Katriel <iritkatriel at gmail.com> added the comment:

> It seems sufficient to call a magic method on the exception immediately after these the traceback/cause/context parameters have been set while it is being raised


What should happen if this callback raises an exception?

----------
nosy: +iritkatriel

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


More information about the Python-bugs-list mailing list