From cfaa2d338bd72af63a35a424515b47a183cefc14 Mon Sep 17 00:00:00 2001 From: Ikko Ashimine Date: Sat, 17 Apr 2021 15:32:53 +0900 Subject: Fix typo in exceptions.rst (GH-25434) attemps -> 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 158672d..21c508d 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 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 -- cgit v0.12