Collin Winter <coll...@gmail.com> added the comment: As another data point, Unladen Swallow had to take explicit steps to deal with this dead code when compiling bytecode to machine code. Since Python's compiler isn't smart enough to ignore code following a "return" or "raise" in the same suite, support for that had to percolate into our compiler.
For me, it's cleanliness issue, not a performance issue. That certainly lowers the priority, though. The warning James is adding for dead code detection may also be useful; it looks to have already found one bug in the stdlib. ---------- _______________________________________ Python tracker <rep...@bugs.python.org> <http://bugs.python.org/issue6250> _______________________________________ _______________________________________________ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com