This issue tracker has been migrated to GitHub, and is currently read-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.

Author iritkatriel
Recipients iritkatriel
Date 2022-01-11.12:43:40
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1641905020.84.0.19361344207.issue46343@roundup.psfhosted.org>
In-reply-to
Content
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.
History
Date User Action Args
2022-01-11 12:43:40iritkatrielsetrecipients: + iritkatriel
2022-01-11 12:43:40iritkatrielsetmessageid: <1641905020.84.0.19361344207.issue46343@roundup.psfhosted.org>
2022-01-11 12:43:40iritkatriellinkissue46343 messages
2022-01-11 12:43:40iritkatrielcreate