Comments (4)
This is a bug in the print action routines (probably uncompyle6/semantics/gencomp.py) that take the AST produced and format and print the results. You can see the trees that get created by adding the -T
option to uncompyle6
.
A like kind of thing that happens is that the wrong child of a node is looked at in the generation routine.
This works in decompyle3, so one fix would be to backport code from there here.
Are you up for fixing this bug?
from python-uncompyle6.
Thanks for the comment, I had not seen decompyle3 before and it does seem to work there! I'll try switching to that repository as I am working on Python 3.8.
I'm personally not up to the task of fixing it, especially now that I have a clean workaround, but maybe a backport can happen one day indeed.
from python-uncompyle6.
One of the problems when decompile in list Comprehension and result is :
parents = (lambda .0: [ Nodes.getParent(x) for x in .0 ])(nodes)
and In some cases, it outputs an empty file
In one case, a 60KB file became 120MB.had repeated
in python 3.7 and decompyle6
from python-uncompyle6.
@mosadegh22 file a proper bug report in decompyle3 and I might investigate when I am able.
from python-uncompyle6.
Related Issues (20)
- lambda + dict comprehension is not decompiled properly HOT 2
- bug HOT 1
- just became a sponsor and need help to uncompyle python 3.11 exe file HOT 1
- Unknown magic number 227 in shopee.pyc
- Program crashes on Windows Conda Python 3.x HOT 9
- failure for "if a or not b:" HOT 5
- Incorrect decompilation of genexpr with `if isinstance` HOT 1
- liberapay link ? HOT 4
- Request for uncompyle6 to support newer versions of python.
- Missing "While True" HOT 4
- Redundant "else:"
- Unsupported Python version, 3.11, for decompilation HOT 3
- AssertionError HOT 1
- Added support for later versions of Python
- uncompyle6 / decompile / issue HOT 1
- whilestmt38 contains a "_stmts" instead of one of "l_stmts", "l_stmts_opt", "pass" HOT 1
- does not smell like code
- When will python3.12 be supported? HOT 1
- help -h isn't a thing HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from python-uncompyle6.