[issue35137] Exception in isinstance when __class__ property raises

Serhiy Storchaka report at bugs.python.org
Thu Nov 1 13:08:17 EDT 2018


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

Arbitrary exceptions should not be silenced. Imagine that the user pressed Ctrl-C when the __class__ property implemented in Python was executed. The KeyboardInterrupt exception will be silenced in Python 2, and isinstance() will silently return incorrect result.

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

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


More information about the Python-bugs-list mailing list