[issue23188] Exception chaining should trigger for non-normalised exceptions
Antoine Pitrou
report at bugs.python.org
Sat Jan 10 01:07:34 CET 2015
Antoine Pitrou added the comment:
> The interesting discovery I made while reviewing the patch for issue
> 22906 is that there apparently *is* implicit chaining support in
> PyErr_SetObject
Indeed, there is, and it should work properly (AFAIR there was quite a bit of debugging to make this work). Also, note that normalizing is already handled.
I'm not sure what you're witnessing that doesn't work as expected. I suspect that you may be confusing "an exception has been caught" (and is ready to be chained from) with "an exception has been raised" (i.e. PyErr_Occurred() is true).
----------
_______________________________________
Python tracker <report at bugs.python.org>
<http://bugs.python.org/issue23188>
_______________________________________
More information about the Python-bugs-list
mailing list