Skip to content

Commit 56234be

Browse files
committed
gh-144693: Clarify that PyFrame_GetBack preserves existing exception state on NULL return
1 parent caac966 commit 56234be

1 file changed

Lines changed: 2 additions & 0 deletions

File tree

Doc/c-api/frame.rst

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -50,6 +50,8 @@ See also :ref:`Reflection <reflection>`.
5050
5151
Return a :term:`strong reference`, or ``NULL`` if *frame* has no outer
5252
frame.
53+
Does not raise an exception, even if the return value is ``NULL``.
54+
Preserves exception that was set before the call.
5355
5456
.. versionadded:: 3.9
5557

0 commit comments

Comments
 (0)