From a14b604da81d8e6fb23a27a30bd20cef0f527403 Mon Sep 17 00:00:00 2001 From: "zainnadeem(RedOpsCell)" Date: Fri, 10 Jul 2026 18:01:17 +0500 Subject: [PATCH] gh-148589: Clarify PyThreadState_GetFrame thread state requirement --- Doc/c-api/threads.rst | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/Doc/c-api/threads.rst b/Doc/c-api/threads.rst index f48af654e7422bc..32e5a1d77b90aa3 100644 --- a/Doc/c-api/threads.rst +++ b/Doc/c-api/threads.rst @@ -708,7 +708,8 @@ Low-level APIs See also :c:func:`PyEval_GetFrame`. - *tstate* must not be ``NULL``, and must be :term:`attached `. + *tstate* must not be ``NULL``, and must be the :term:`thread state` + :term:`attached ` to the current OS thread. .. versionadded:: 3.9