[Python-checkins] Doc: Fix ambiguous pronoun (GH-26037)

willingc webhook-mailer at python.org
Fri May 14 02:27:14 EDT 2021


https://github.com/python/cpython/commit/fe175a87adb8bd4c65f58b156dc3e4792b525a8c
commit: fe175a87adb8bd4c65f58b156dc3e4792b525a8c
branch: main
author: Daniel Shahaf <d.s at daniel.shahaf.name>
committer: willingc <carolcode at willingconsulting.com>
date: 2021-05-13T23:27:06-07:00
summary:

Doc: Fix ambiguous pronoun (GH-26037)

files:
M Doc/reference/compound_stmts.rst

diff --git a/Doc/reference/compound_stmts.rst b/Doc/reference/compound_stmts.rst
index 0274095feffde..c405423b75a65 100644
--- a/Doc/reference/compound_stmts.rst
+++ b/Doc/reference/compound_stmts.rst
@@ -254,7 +254,7 @@ is found that matches the exception.  An expression-less except clause, if
 present, must be last; it matches any exception.  For an except clause with an
 expression, that expression is evaluated, and the clause matches the exception
 if the resulting object is "compatible" with the exception.  An object is
-compatible with an exception if it is the class or a base class of the exception
+compatible with an exception if the object is the class or a base class of the exception
 object, or a tuple containing an item that is the class or a base class of
 the exception object.
 



More information about the Python-checkins mailing list