Josh Rosenberg added the comment: Does this introduce a slowdown when the type doesn't match? That is, clearly George's example:
try: {}["a"] except KeyError: pass won't be slowed because the fast path will get an immediate hit. But what about: try: {}["a"] except TypeError: pass except ValueError: pass except KeyError: pass (or with the KeyError handler higher up the call stack). The fast path speeds up the handled case, but it doesn't seem like it would help the unhandled case (where it would need to check the slow path for each unhandled exception type one at a time). ---------- nosy: +josh.r _______________________________________ Python tracker <rep...@bugs.python.org> <http://bugs.python.org/issue12029> _______________________________________ _______________________________________________ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com