From 56234be90a1176990523588ec70e21f0b207a991 Mon Sep 17 00:00:00 2001 From: Taegyun Kim Date: Sat, 14 Feb 2026 14:03:25 -0500 Subject: [PATCH] gh-144693: Clarify that PyFrame_GetBack preserves existing exception state on NULL return --- Doc/c-api/frame.rst | 2 ++ 1 file changed, 2 insertions(+) diff --git a/Doc/c-api/frame.rst b/Doc/c-api/frame.rst index fb17cf7f1da6b2..224c737d5c01c8 100644 --- a/Doc/c-api/frame.rst +++ b/Doc/c-api/frame.rst @@ -50,6 +50,8 @@ See also :ref:`Reflection `. Return a :term:`strong reference`, or ``NULL`` if *frame* has no outer frame. + Does not raise an exception, even if the return value is ``NULL``. + Preserves exception that was set before the call. .. versionadded:: 3.9