On Fri, Dec 20 2019, Victor Stinner wrote:
Hi Victor,
> If we add the following function, does it solve your use case?
>
> void
> _PyErr_GetExcInfo(PyThreadState *tstate,
> PyObject **p_type, PyObject **p_value, PyObject
> **p_traceback)
Yes, it would.
>> In order to retrieve
Hi,
Le mer. 18 déc. 2019 à 16:43, Julien Danjou a écrit :
> The only way to retrieve the current exception is via sys.excinfo or
> PyErr_GetExcInfo in C. However, the issue is that they don't take a
> PyThreadState as argument, but use _PyThreadState_GET() to retrieve the
> thread state.
If we a