[Python-checkins] [3.9] gh-81488: Add recursive wording for issubclass docs (GH-92087) (#92131)
JelleZijlstra
webhook-mailer at python.org
Mon May 2 10:36:50 EDT 2022
https://github.com/python/cpython/commit/28cd98f352dcb9728c272d842070602edc69c0a7
commit: 28cd98f352dcb9728c272d842070602edc69c0a7
branch: 3.9
author: slateny <46876382+slateny at users.noreply.github.com>
committer: JelleZijlstra <jelle.zijlstra at gmail.com>
date: 2022-05-02T08:36:19-06:00
summary:
[3.9] gh-81488: Add recursive wording for issubclass docs (GH-92087) (#92131)
(cherry picked from commit 1066ecb97042b8e89de554e6f9dc2e3d634208c0)
Co-authored-by: slateny <46876382+slateny at users.noreply.github.com>
files:
M Doc/library/functions.rst
diff --git a/Doc/library/functions.rst b/Doc/library/functions.rst
index 937e00bf994e6..13d7d6e5b0aa3 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
<abstract base class>`) 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.
More information about the Python-checkins
mailing list