[issue12029] Catching virtual subclasses in except clauses

Guido van Rossum report at bugs.python.org
Tue Dec 10 16:44:39 CET 2013


Guido van Rossum added the comment:

"I remembered we already run arbitrary code at roughly this point in the eval loop, as we have to invoke __iter__ to get the exceptions to check when an iterable is used in except clause."

Are you sure?  IIRC the except clause only accept exceptions and tuples of exceptions, not iterators.

----------

_______________________________________
Python tracker <report at bugs.python.org>
<http://bugs.python.org/issue12029>
_______________________________________


More information about the Python-bugs-list mailing list