python-uncompyle6
python-uncompyle6 copied to clipboard
A cross-version Python bytecode decompiler
## Description We currently can parse, "exec" and "single", compile-mode code; we should also allow "eval". ## Background See this [SO question](https://stackoverflow.com/questions/51312282/what-is-the-correct-way-to-use-uncompyle6-for-code-objects/52394348#52394348).
- original file [504lab.exe.zip](https://github.com/rocky/python-uncompyle6/files/4686346/504lab.exe.zip) - patched bytecode [504lab.pyc.zip](https://github.com/rocky/python-uncompyle6/files/4686347/504lab.pyc.zip) - error message ``` $ uncompyle6 504lab.pyc # uncompyle6 version 3.7.0 # Python bytecode 3.8 (3413) # Decompiled from: Python 3.8.2 (default,...
## Description Fails after an assert with and of two (a
Hello, I'm trying to recover some old source code for archiving purposes from bytecode which was created by Python 3.4.3 (3310) years ago. I'm using Windows 10 1809 x64, Python...
Hi, I am a bunch of pyc to be decompiled to py. The pyc is compiled by python version 2.7. So i downloaded the python-2.4 branch and setup the same...
## How to Reproduce ```python 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...
L. 110 168 BREAK_LOOP -> 170_0 COME_FROM 164 '164' 170_1 COME_FROM 128 '128' 170 POP_BLOCK 172 LOAD_CONST None 174_0 COME_FROM_FINALLY 54 '54' Instruction context: -> L. 354 776 BREAK_LOOP 778_780...
This code fails to decompile under python3.8: ```python for x in arr_a: for y in arr_b: var = True break ``` Bytecode: ``` 1 0 LOAD_NAME 0 (arr_a) 2 GET_ITER...
If you compile this `test.py` into a .pyc (with `import py_compile; py_compile.compile("test.py")`): ``` def f(): L = [] if len(L) > 1: if 1: pass else: pass else: pass ```...
At this point probably 3.7 and 3.8 decompilation with its refactored parsing and reduction-rule checking is better than the code in uncompyle6. Although there still is much to do in...