From fe175a87adb8bd4c65f58b156dc3e4792b525a8c Mon Sep 17 00:00:00 2001 From: Daniel Shahaf Date: Fri, 14 May 2021 06:27:06 +0000 Subject: [PATCH] Doc: Fix ambiguous pronoun (GH-26037) --- Doc/reference/compound_stmts.rst | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Doc/reference/compound_stmts.rst b/Doc/reference/compound_stmts.rst index 0274095feff..c405423b75a 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.