[issue12029] Catching virtual subclasses in except clauses

Nick Coghlan report at bugs.python.org
Sun Nov 3 13:36:15 CET 2013


Nick Coghlan added the comment:

A point on the safety/correctness front: 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.

That means allowing the subclass check hooks to run here isn't as radical a change as I first thought.

----------

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


More information about the Python-bugs-list mailing list