[Python-checkins] gh-81488: Add recursive wording for issubclass docs (#92087)
JelleZijlstra
webhook-mailer at python.org
Sun May 1 00:05:24 EDT 2022
https://github.com/python/cpython/commit/1066ecb97042b8e89de554e6f9dc2e3d634208c0
commit: 1066ecb97042b8e89de554e6f9dc2e3d634208c0
branch: main
author: slateny <46876382+slateny at users.noreply.github.com>
committer: JelleZijlstra <jelle.zijlstra at gmail.com>
date: 2022-04-30T22:05:20-06:00
summary:
gh-81488: Add recursive wording for issubclass docs (#92087)
files:
M Doc/library/functions.rst
diff --git a/Doc/library/functions.rst b/Doc/library/functions.rst
index 394281462ded5..cb86296897082 100644
--- a/Doc/library/functions.rst
+++ b/Doc/library/functions.rst
@@ -917,7 +917,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 or a :ref:`types-union`, in which case return ``True`` if *class* is a
+ objects (or recursively, other such tuples)
+ or a :ref:`types-union`, 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