]> git.ipfire.org Git - thirdparty/Python/cpython.git/commit
gh-108867: Add PyThreadState_GetUnchecked() function (#108870)
authorVictor Stinner <vstinner@python.org>
Tue, 3 Oct 2023 16:53:51 +0000 (18:53 +0200)
committerGitHub <noreply@github.com>
Tue, 3 Oct 2023 16:53:51 +0000 (16:53 +0000)
commitd73501602f863a54c872ce103cd3fa119e38bac9
treedf6d23aa36d385215bb03f22fe0aacf625bbdf1e
parent6ab6040054e5ca2d3eb7833dc8bf4eb0bbaa0aac
gh-108867: Add PyThreadState_GetUnchecked() function (#108870)

Add PyThreadState_GetUnchecked() function: similar to
PyThreadState_Get(), but don't issue a fatal error if it is NULL. The
caller is responsible to check if the result is NULL. Previously,
this function was private and known as _PyThreadState_UncheckedGet().
Doc/c-api/init.rst
Doc/whatsnew/3.13.rst
Include/cpython/object.h
Include/cpython/pystate.h
Include/internal/pycore_pystate.h
Include/pystate.h
Misc/NEWS.d/next/C API/2023-09-04-11-47-12.gh-issue-108867.Cr_LKd.rst [new file with mode: 0644]
Modules/_testcapimodule.c
Modules/getpath.c
Python/pystate.c