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

Franklin? Lee report at bugs.python.org
Sun Jun 16 08:34:32 EDT 2019


Franklin? Lee <leewangzhong at gmail.com> added the comment:

> > It's likely also false that every entry will be checked, since presumably the function uses short-circuit logic.

> This, however, would be good to verify first.

Verified.
https://github.com/python/cpython/blob/36dcaab7fde5d2e54cdeff5b705b5adcb27726dd/Objects/abstract.c#L2517

It loops through the tuple until it finds success or error.

----------

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


More information about the Python-bugs-list mailing list