https://github.com/python/cpython/commit/f3d3663a47f82de5ddf384ea1497bd3b36d795d7
commit: f3d3663a47f82de5ddf384ea1497bd3b36d795d7
branch: 3.12
author: Miss Islington (bot) <[email protected]>
committer: iritkatriel <[email protected]>
date: 2023-12-31T23:22:55Z
summary:

[3.12] gh-101578: [doc] mention that PyErr_GetRaisedException returns NULL when 
the error indicator is not set (GH-113369) (#113606)

gh-101578: [doc] mention that PyErr_GetRaisedException returns NULL when the 
error indicator is not set (GH-113369)
(cherry picked from commit 2849cbb53afc8c6a4465f1b3490c67c2455caf6f)

Co-authored-by: Irit Katriel <[email protected]>

files:
M Doc/c-api/exceptions.rst

diff --git a/Doc/c-api/exceptions.rst b/Doc/c-api/exceptions.rst
index d5119789a5f623..39408641c8a52e 100644
--- a/Doc/c-api/exceptions.rst
+++ b/Doc/c-api/exceptions.rst
@@ -427,7 +427,7 @@ Querying the error indicator
 .. c:function:: PyObject *PyErr_GetRaisedException(void)
 
    Return the exception currently being raised, clearing the error indicator at
-   the same time.
+   the same time. Return ``NULL`` if the error indicator is not set.
 
    This function is used by code that needs to catch exceptions,
    or code that needs to save and restore the error indicator temporarily.

_______________________________________________
Python-checkins mailing list -- [email protected]
To unsubscribe send an email to [email protected]
https://mail.python.org/mailman3/lists/python-checkins.python.org/
Member address: [email protected]

Reply via email to