What steps will reproduce the problem?
$ python byteplay.py testcase.py Traceback (most recent call last): File "byteplay.py", line 924, in <module> main() File "byteplay.py", line 921, in main recompile_all(sys.argv[1]) File "byteplay.py", line 900, in recompile_all recompile(filename) File "byteplay.py", line 878, in recompile codeobject2 = cod.to_code() File "byteplay.py", line 649, in to_code co_stacksize = self._compute_stacksize() File "byteplay.py", line 642, in _compute_stacksize open_positions.extend(get_next_stacks(pos, curstack)) File "byteplay.py", line 492, in get_next_stacks raise ValueError, "Inconsistent code" ValueError: Inconsistent code
What version of the product are you using? On what operating system? byteplay 0.2, Python 2.7.6, Debian Linux
- testcase.py 166
Comment #1
Posted on Apr 28, 2014 by Happy BearI've attached an even simpler test case.
The disassembly is:
1 9 SETUP_LOOP to 29
2 >> 12 SETUP_FINALLY to 26
3 14 SETUP_FINALLY to 21
4 16 CONTINUE_LOOP to 12 17 POP_BLOCK 18 LOAD_CONST None
6 >> 21 END_FINALLY 22 POP_BLOCK 23 LOAD_CONST None
8 >> 26 END_FINALLY 27 JUMP_ABSOLUTE to 12
29 LOAD_CONST None 30 RETURN_VALUE
Comment #2
Posted on Apr 28, 2014 by Happy Bear(No comment was entered for this change.)
Attachments- testcase2.py 109
Status: New
Labels:
Type-Defect
Priority-Medium