]> git.ipfire.org Git - thirdparty/Python/cpython.git/commitdiff
bpo-44135: Refine explanation of how passing tuples to issubclass() behaves (GH-26193...
authorŁukasz Langa <lukasz@langa.pl>
Tue, 31 Aug 2021 16:00:16 +0000 (18:00 +0200)
committerGitHub <noreply@github.com>
Tue, 31 Aug 2021 16:00:16 +0000 (18:00 +0200)
This is a quasi-backport to 3.9 since the wording in this branch is different.

Co-authored-by: Zachary Kneupper zachary.kneupper@gmail.com
Doc/library/functions.rst

index c5c1c161293f6ee1428eb8b85f3d28091ebca163..39ce338d38871d7dcbeb0bbb918a98ad48d67f4b 100644 (file)
@@ -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])