Message410299
Following the removal of exc_type and exc_traceback from the interpreter's active exception in issue45711, we can now provide simplified get-set functions in the C Api:
PyAPI_FUNC(void) PyErr_GetActiveException(PyObject **);
PyAPI_FUNC(void) PyErr_SetActiveException(PyObject *);
as alternatives to
PyAPI_FUNC(void) PyErr_GetExcInfo(PyObject **, PyObject **, PyObject **);
PyAPI_FUNC(void) PyErr_SetExcInfo(PyObject *, PyObject *, PyObject *);
See also issue46328 re the corresponding change in the sys module. |
|
Date |
User |
Action |
Args |
2022-01-11 12:43:40 | iritkatriel | set | recipients:
+ iritkatriel |
2022-01-11 12:43:40 | iritkatriel | set | messageid: <1641905020.84.0.19361344207.issue46343@roundup.psfhosted.org> |
2022-01-11 12:43:40 | iritkatriel | link | issue46343 messages |
2022-01-11 12:43:40 | iritkatriel | create | |
|