]> git.ipfire.org Git - thirdparty/Python/cpython.git/commit
bpo-39164: Add private _PyErr_GetExcInfo() function (GH-17752)
authorJulien Danjou <julien@danjou.info>
Mon, 13 Jan 2020 16:30:14 +0000 (17:30 +0100)
committerVictor Stinner <vstinner@python.org>
Mon, 13 Jan 2020 16:30:14 +0000 (17:30 +0100)
commit3430c55417f59078ac397c343894a3ee82a39624
treed3af476d850ca05ea37130eb7e22c0229cb13612
parentd8efc1495194228c3a4cd472200275d6491d8e2d
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.
Include/cpython/pyerrors.h
Misc/NEWS.d/next/C API/2019-12-30-10-43-52.bpo-39164.WEV0uu.rst [new file with mode: 0644]
Python/errors.c