From 456e5eddf68aeb8a05ef0d0af5a394455a8baa8c Mon Sep 17 00:00:00 2001 From: Ikko Ashimine Date: Fri, 16 Apr 2021 15:16:03 +0900 Subject: [PATCH 1/2] Fix typo in exceptions.rst attemps -> attempt --- Doc/c-api/exceptions.rst | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Doc/c-api/exceptions.rst b/Doc/c-api/exceptions.rst index 158672d86b325dd..e4e11039f3e2cf4 100644 --- a/Doc/c-api/exceptions.rst +++ b/Doc/c-api/exceptions.rst @@ -512,7 +512,7 @@ Signal Handling and if so, invokes the corresponding signal handler. If the :mod:`signal` module is supported, this can invoke a signal handler written in Python. - The function attemps to handle all pending signals, and then returns ``0``. + The function attempt to handle all pending signals, and then returns ``0``. However, if a Python signal handler raises an exception, the error indicator is set and the function returns ``-1`` immediately (such that other pending signals may not have been handled yet: they will be on the From d2375c8afbdd7420abe7865535b2b31cce2dcad5 Mon Sep 17 00:00:00 2001 From: Ikko Ashimine Date: Fri, 16 Apr 2021 16:17:08 +0900 Subject: [PATCH 2/2] Fix typo in exceptions.rst attempt -> attempts --- Doc/c-api/exceptions.rst | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Doc/c-api/exceptions.rst b/Doc/c-api/exceptions.rst index e4e11039f3e2cf4..21c508dc30ae222 100644 --- a/Doc/c-api/exceptions.rst +++ b/Doc/c-api/exceptions.rst @@ -512,7 +512,7 @@ Signal Handling and if so, invokes the corresponding signal handler. If the :mod:`signal` module is supported, this can invoke a signal handler written in Python. - The function attempt to handle all pending signals, and then returns ``0``. + The function attempts to handle all pending signals, and then returns ``0``. However, if a Python signal handler raises an exception, the error indicator is set and the function returns ``-1`` immediately (such that other pending signals may not have been handled yet: they will be on the