[Python-checkins] bpo-44135: Refine explanation of how passing tuples to issubclass() behaves (GH-26193)
webhook-mailer at python.org
Tue Aug 31 09:39:23 EDT 2021
author: Zack Kneupper <zachary.kneupper at gmail.com>
committer: ambv <lukasz at langa.pl>
bpo-44135: Refine explanation of how passing tuples to issubclass() behaves (GH-26193)
Co-authored-by: Zachary Kneupper <zachary.kneupper at gmail.com>
diff --git a/Doc/library/functions.rst b/Doc/library/functions.rst
index 652e30c6088ad..fef6c6292f95c 100644
@@ -916,9 +916,9 @@ 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 every entry in *classinfo*
- will be checked. In any other
- case, a :exc:`TypeError` exception is raised.
+ objects 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.
.. versionchanged:: 3.10
*classinfo* can be a :ref:`types-union`.
More information about the Python-checkins