Comments (6)
Hello,
Seems easy enough to do. What is the motivation for this?
from python-uncompyle6.
from python-uncompyle6.
Ok. Thanks for the information. Right now performance if anything has gotten worse on 2.7 since we are more focused on accuracy and handling Python bytecode other than 2.7.
So if all you care about is decompiling 2.7 using a 2.7ish compiler, then I'd stick with wibiti's uncompyle6. (There have been a couple of bugs found in that like escaping triple-quoted strings, and handling complex number constants, some control flow and function prototypes, and handling if == precedence; but all of these tend to be arcane situations. Someone could probably take the code in uncompyle6 and back port it to wibiti uncompyle2.)
While doing some testing and comparing the outputs I have also found that this project adds quite a few redundant return statements, is that intended behavior?
While it isn't intended, it isn't unintended either. The code works simply by following grammar patterns it detects in the code. Possibly it is matching more return statements than the grammar used previously.
In both, there's a special case hack to check to see if the last statement is a return statement https://github.com/rocky/python-uncompyle6/blob/master/uncompyle6/semantics/pysource.py#L1959-L1963
This test probably used to come out True more often. If this is important to fix, find a small test case that exhibits the problem and file an issue for that.
Oh, and if you file a pull request for an option to disable outputting headers, this will probably get done sooner.
from python-uncompyle6.
Closed because of lack of interest. In fact, it might not be a bad idea to go the other way. Maybe I should add my name in the meta comments.
from python-uncompyle6.
Why don't you just leave it open as a feature request? You don't have to implement it but you can keep it tracked.
from python-uncompyle6.
Nah - Nothing4You ;-)
from python-uncompyle6.
Related Issues (20)
- KeyError: 7198 Any idea on how to fix that ?
- TypeError: '>=' not supported between instances of 'str' and 'int' HOT 2
- 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:"
- List comprehensions inside of a lambda print only `[` HOT 4
- 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
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.