Message412304
> GH-30531 proposes adding PyErr_GetActiveException() function which has no parameter, but Cython __Pyx_PyErr_GetTopmostException() has a tstate parameter.
I've now updated it to follow the pattern of other functions, where the is a private function that takes tstate and the public function calls it.
So it adds in Include/pyerrors.h
PyAPI_FUNC(PyObject*) PyErr_GetActiveException(void);
PyAPI_FUNC(void) PyErr_SetActiveException(PyObject *);
and in Include/cpython/pyerrors.h
PyAPI_FUNC(PyObject*) _PyErr_GetActiveException(PyThreadState *);
PyAPI_FUNC(void) _PyErr_SetActiveException(PyThreadState *, PyObject *); |
|
Date |
User |
Action |
Args |
2022-02-01 19:52:16 | iritkatriel | set | recipients:
+ iritkatriel, gvanrossum, terry.reedy, scoder, vstinner, Mark.Shannon, brandtbucher |
2022-02-01 19:52:16 | iritkatriel | set | messageid: <1643745136.45.0.523433239347.issue45711@roundup.psfhosted.org> |
2022-02-01 19:52:16 | iritkatriel | link | issue45711 messages |
2022-02-01 19:52:16 | iritkatriel | create | |
|