bpo-39164: Add private _PyErr_GetExcInfo() function (GH-17752) · wrongnull/cpython@3430c55 · GitHub
Skip to content

Commit 3430c55

Browse files
jdvstinner
authored andcommitted
bpo-39164: Add private _PyErr_GetExcInfo() function (pythonGH-17752)
This adds a new function named _PyErr_GetExcInfo() that is a variation of the original PyErr_GetExcInfo() taking a PyThreadState as its first argument. That function allows to retrieve the exceptions information of any Python thread -- not only the current one.
1 parent d8efc14 commit 3430c55

3 files changed

Lines changed: 12 additions & 4 deletions

File tree

Include/cpython/pyerrors.h

Lines changed: 1 addition & 0 deletions
Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
Add a private ``_PyErr_GetExcInfo()`` function to retrieve exception information of the specified Python thread state.

Python/errors.c

Lines changed: 10 additions & 4 deletions

0 commit comments

Comments
 (0)