From: slateny <46876382+slateny@users.noreply.github.com> Date: Mon, 2 May 2022 14:36:19 +0000 (-0700) Subject: [3.9] gh-81488: Add recursive wording for issubclass docs (GH-92087) (#92131) X-Git-Tag: v3.9.13~61 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=28cd98f352dcb9728c272d842070602edc69c0a7;p=thirdparty%2FPython%2Fcpython.git [3.9] gh-81488: Add recursive wording for issubclass docs (GH-92087) (#92131) (cherry picked from commit 1066ecb97042b8e89de554e6f9dc2e3d634208c0) Co-authored-by: slateny <46876382+slateny@users.noreply.github.com> --- diff --git a/Doc/library/functions.rst b/Doc/library/functions.rst index 937e00bf994e..13d7d6e5b0aa 100644 --- a/Doc/library/functions.rst +++ b/Doc/library/functions.rst @@ -862,7 +862,8 @@ are always available. They are listed here in alphabetical order. Return ``True`` if *class* is a subclass (direct, indirect or :term:`virtual `) of *classinfo*. A class is considered a subclass of itself. *classinfo* may be a tuple of class - objects, in which case return ``True`` if *class* is a subclass of any entry + objects (or recursively, other such tuples), + in which case return ``True`` if *class* is a subclass of any entry in *classinfo*. In any other case, a :exc:`TypeError` exception is raised.