summaryrefslogtreecommitdiffstats
path: root/Doc/ref7.tex
diff options
context:
space:
mode:
Diffstat (limited to 'Doc/ref7.tex')
-rw-r--r--Doc/ref7.tex9
1 files changed, 5 insertions, 4 deletions
diff --git a/Doc/ref7.tex b/Doc/ref7.tex
index f099ae5..196215a 100644
--- a/Doc/ref7.tex
+++ b/Doc/ref7.tex
@@ -201,10 +201,11 @@ clause, if present, must be last; it matches any exception. For an
except clause with a condition, that condition 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 either the object that identifies the exception or it is a tuple
-containing an item that is compatible with the exception. Note that
-the object identities must match, i.e. it must be the same object, not
-just an object with the same value.
+is either the object that identifies the exception, or (for exceptions
+that are classes) it is a base class of the exception, or it is a
+tuple containing an item that is compatible with the exception. Note
+that the object identities must match, i.e. it must be the same
+object, not just an object with the same value.
\kwindex{except}
If no except clause matches the exception, the search for an exception