Open josephernest opened 4 years ago
@rocky I found an even more minimal example:
L = []
if len(L) > 1:
pass
else:
pass
Error log:
L. 1 0 BUILD_LIST_0 0
2 STORE_NAME L
L. 2 4 LOAD_NAME len
6 LOAD_NAME L
8 CALL_FUNCTION_1 1 '1 positional argument'
10 LOAD_CONST 1
12 COMPARE_OP >
14 POP_JUMP_IF_FALSE 18 'to 18'
L. 3 16 JUMP_FORWARD 18 'to 18'
18_0 COME_FROM 16 '16'
18_1 COME_FROM 14 '14'
Parse error at or near `COME_FROM' instruction at offset 18_0
Both examples have been addressed in the decompyle3 project. However the massive grammar changes needs to be backported here.
have been addressed in the decompyle6 project
@rocky what is the decompyle6 project? Is it different to uncompyle6?
decompyle6 project
Do you mean decompile3?
Parse error at or near `POP_EXCEPT' instruction at offset 276
If you compile this
test.py
into a .pyc (withimport py_compile; py_compile.compile("test.py")
):then decompiling it with
uncompyle6
withgenerates this error:
Here is the full error: