diff --git a/Doc/library/signal.rst b/Doc/library/signal.rst index 0aa5996b89423b..e763e16d02a3ea 100644 --- a/Doc/library/signal.rst +++ b/Doc/library/signal.rst @@ -703,7 +703,7 @@ To illustrate this issue, consider the following code:: def __enter__(self): # If KeyboardInterrupt occurs here, everything is fine self.lock.acquire() - # If KeyboardInterrupt occcurs here, __exit__ will not be called + # If KeyboardInterrupt occurs here, __exit__ will not be called ... # KeyboardInterrupt could occur just before the function returns diff --git a/Doc/reference/expressions.rst b/Doc/reference/expressions.rst index 1f8b08f70d504e..b8c8d5fe3e33d6 100644 --- a/Doc/reference/expressions.rst +++ b/Doc/reference/expressions.rst @@ -568,7 +568,7 @@ is already executing raises a :exc:`ValueError` exception. In typical use, this is called with a single exception instance similar to the way the :keyword:`raise` keyword is used. - For backwards compatability, however, the second signature is + For backwards compatibility, however, the second signature is supported, following a convention from older versions of Python. The *type* argument should be an exception class, and *value* should be an exception instance. If the *value* is not provided, the
Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.
Alternative Proxies: