[issue1394] simple patch, improving unreachable bytecode removing
Alexander Belopolsky
report at bugs.python.org
Mon Feb 25 01:04:27 CET 2008
Alexander Belopolsky added the comment:
I am not sure what this patch would accomplish. I tried
$ cat t.py
def f():
return 1
1+2
from dis import dis
print dis(f)
Both with and without patch I get
$ ./python.exe -O t.py
2 0 LOAD_CONST 1 (1)
3 RETURN_VALUE
3 4 LOAD_CONST 1 (1)
7 LOAD_CONST 2 (2)
10 BINARY_ADD
11 POP_TOP
None
I am sure I am missing something, but it is hard to tell what without
any use cases provided.
----------
nosy: +belopolsky
__________________________________
Tracker <report at bugs.python.org>
<http://bugs.python.org/issue1394>
__________________________________
More information about the Python-bugs-list
mailing list