[issue12029] Catching virtual subclasses in except clauses
Guido van Rossum
report at bugs.python.org
Fri May 11 18:37:40 CEST 2012
Guido van Rossum <guido at python.org> added the comment:
I agree it's a bug and should be fixed. It's too confusing that there would be two slightly different interpretations of isinstance/issubclass where the isinstance() and issubclass() would be using the extended interpretation but the except clause would use the narrow interpretation.
The exception matching done by the except clause ought to be explainable in terms of issubclass/isinstance.
Python tracker <report at bugs.python.org>
More information about the Python-bugs-list