[docs] [issue37307] isinstance/issubclass doc isn't clear on whether it's an AND or an OR.

Karthikeyan Singaravelan report at bugs.python.org
Sun Jun 16 08:32:03 EDT 2019


Karthikeyan Singaravelan <tir.karthi at gmail.com> added the comment:

docstring for issubclass is a bit clear on the behavior


issubclass(cls, class_or_tuple, /)
    Return whether 'cls' is a derived from another class or is the same class.

    A tuple, as in ``issubclass(x, (A, B, ...))``, may be given as the target to
    check against. This is equivalent to ``issubclass(x, A) or issubclass(x, B)
    or ...`` etc.

----------
nosy: +xtreak

_______________________________________
Python tracker <report at bugs.python.org>
<https://bugs.python.org/issue37307>
_______________________________________


More information about the docs mailing list