[issue12029] Catching virtual subclasses in except clauses
report at bugs.python.org
Thu May 24 04:26:46 CEST 2012
Jim Jewett <jimjjewett at gmail.com> added the comment:
When does the performance hit occur?
If it is only when an exception has been raised, and its own class is not listed by the except clause, then I personally wouldn't worry about it; tracing the MRO *could* get arbitrarily long already; it just doesn't in practice. The same should be true of virtual subclassing.
On the other hand, if it adds another module or three to the required startup set, that might be a concern...
Python tracker <report at bugs.python.org>
More information about the Python-bugs-list