Pablo Galindo Salgado <pablog...@gmail.com> added the comment:

> FWIW, I believe that you have to call `PyErr_NormalizeException` on the 
> values returned from `PyErr_Fetch`. It looks like this is working as expected.


Indeed that is the case, from the docs:

Under certain circumstances, the values returned by PyErr_Fetch() below can be 
“unnormalized”, meaning that *exc is a class object but *val is not an instance 
of the same class. This function can be used to instantiate the class in that 
case. If the values are already normalized, nothing happens. The delayed 
normalization is implemented to improve performance.

----------
nosy: +pablogsal

_______________________________________
Python tracker <rep...@bugs.python.org>
<https://bugs.python.org/issue35103>
_______________________________________
_______________________________________________
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com

Reply via email to