[issue1394] simple patch, improving unreachable bytecode removing

Alexander Belopolsky report at bugs.python.org
Tue Feb 26 14:10:06 CET 2008


Alexander Belopolsky added the comment:

I have added more tests as Neal suggested. See unreachable-code-with-
tests.diff for a combined patch.  I've rerun all tests after removing 
.pyc files and also with -O option (ensuring no existing .pyo files as 
well). All works.

I've removed #if 0  block and changed "Verify" to "Ensure" in the 
RETURN_VALUE comment.  Paul, maybe you and add an explanation why the 
added RETURN_VALUE will always be eliminated.  I am not sure when python  
produces code with no terminating RETURN_VALUE in the first place.

Added file: http://bugs.python.org/file9559/unreachable-code-with-tests.diff

__________________________________
Tracker <report at bugs.python.org>
<http://bugs.python.org/issue1394>
__________________________________


More information about the Python-bugs-list mailing list