python-uncompyle6
python-uncompyle6 copied to clipboard
A cross-version Python bytecode decompiler
## Description Go over the code to ensure it runs on Python 3.11 ## Background Note that xdis needs to support Python 3.11 See https://github.com/rocky/python-xdis/issues/98 ## Some Output you may...
[test.zip](https://github.com/rocky/python-uncompyle6/files/14842599/test.zip) the file fails to decompile with a tupa out of range error could someone here try to replicate it by trying to decompile it python version 2.7 its a...
## Description **List comprehensions inside of a lambda** print a single `[` bracket instead of the list comprehension, resulting in invalid syntax. ## How to Reproduce The following is a...
This PR attempts to fix the decompilation of simple sets defined as `LOAD_CONST`. Sets were decompiled correctly but the order of elements was not defined. # Test input This was...
## Description "While True" will disappear if a "if" branch is indirectly under it ## How to Reproduce ``` import time L = ['a', 's'] def thread(): while True: for...
## Description a redundant "else:" will be printed ## How to Reproduce ``` import time L = ["a", "s"] def thread(): for c in L: if c == 'a': print(c)...
The current version of uncompyle6 does not support the reversing of bytecode produce by the newer versions of python (python3.10+).
G
## Description ## Background ## Tests
## Description I mocked a very simple code block with there if statements. The decompiled result if different from the original code. ## How to Reproduce The original python code....