[Python-checkins] bpo-44135: Refine explanation of how passing tuples to issubclass() behaves (GH-26193) (GH-28094)

ambv webhook-mailer at python.org
Tue Aug 31 12:00:25 EDT 2021


https://github.com/python/cpython/commit/5f66ad09ff2c51521e1512888cac84e0cc0907d4
commit: 5f66ad09ff2c51521e1512888cac84e0cc0907d4
branch: 3.9
author: Łukasz Langa <lukasz at langa.pl>
committer: ambv <lukasz at langa.pl>
date: 2021-08-31T18:00:16+02:00
summary:

bpo-44135: Refine explanation of how passing tuples to issubclass() behaves (GH-26193) (GH-28094)

This is a quasi-backport to 3.9 since the wording in this branch is different.

Co-authored-by: Zachary Kneupper zachary.kneupper at gmail.com

files:
M Doc/library/functions.rst

diff --git a/Doc/library/functions.rst b/Doc/library/functions.rst
index c5c1c161293f6..39ce338d38871 100644
--- a/Doc/library/functions.rst
+++ b/Doc/library/functions.rst
@@ -862,8 +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 every entry in *classinfo* will be checked. In any other
-   case, a :exc:`TypeError` exception is raised.
+   objects, 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.
 
 
 .. function:: iter(object[, sentinel])



More information about the Python-checkins mailing list