summaryrefslogtreecommitdiffstats
path: root/Include
diff options
context:
space:
mode:
authorJulien Danjou <julien@danjou.info>2020-01-13 16:30:14 (GMT)
committerVictor Stinner <vstinner@python.org>2020-01-13 16:30:14 (GMT)
commit3430c55417f59078ac397c343894a3ee82a39624 (patch)
treed3af476d850ca05ea37130eb7e22c0229cb13612 /Include
parentd8efc1495194228c3a4cd472200275d6491d8e2d (diff)
downloadcpython-3430c55417f59078ac397c343894a3ee82a39624.zip
cpython-3430c55417f59078ac397c343894a3ee82a39624.tar.gz
cpython-3430c55417f59078ac397c343894a3ee82a39624.tar.bz2
bpo-39164: Add private _PyErr_GetExcInfo() function (GH-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.
Diffstat (limited to 'Include')
-rw-r--r--Include/cpython/pyerrors.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/Include/cpython/pyerrors.h b/Include/cpython/pyerrors.h
index e3098b3..f8480fb 100644
--- a/Include/cpython/pyerrors.h
+++ b/Include/cpython/pyerrors.h
@@ -76,6 +76,7 @@ typedef PyOSErrorObject PyWindowsErrorObject;
PyAPI_FUNC(void) _PyErr_SetKeyError(PyObject *);
_PyErr_StackItem *_PyErr_GetTopmostException(PyThreadState *tstate);
+PyAPI_FUNC(void) _PyErr_GetExcInfo(PyThreadState *, PyObject **, PyObject **, PyObject **);
/* Context manipulation (PEP 3134) */