[issue39550] isinstance accepts subtypes of tuples as second argument

Serhiy Storchaka report at bugs.python.org
Tue Feb 4 13:59:21 EST 2020


Serhiy Storchaka <storchaka+cpython at gmail.com> added the comment:

I do not understand what the problem is.

If the isinstance tuple iteration were to start using __iter__ in the future, it should start to handle all corner cases. But what is wrong now?

----------
nosy: +serhiy.storchaka

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


More information about the Python-bugs-list mailing list