rocky / python-uncompyle6

A cross-version Python bytecode decompiler
GNU General Public License v3.0
3.79k stars 413 forks source link

[bug] while not x and not y or z: #326

Open byehack opened 4 years ago

byehack commented 4 years ago

How to Reproduce

def func():
    while not x and not y or z:
        print(x)

Expected behavior

Environment

windows 10 python 3.8.2 decompile3 3.3.2

Additional Environment or Context

C:\Python38\Scripts\decompyle3.exe -o . bug1.pyc
Instruction context:

 L.   3        12  LOAD_GLOBAL              print
                  14  LOAD_GLOBAL              x
                  16  CALL_FUNCTION_1       1  ''
                  18  POP_TOP
->                20  JUMP_BACK             0  'to 0'

# file bug1.pyc
# Deparsing stopped due to parse error
bug1.pyc --
# decompile failed