Comments (2)
Let's set a little context here. As best as I can tell the opcode STORE_LOCALS was in python 3.0-3.3 but removed in 3.4 right? What version of Python does this bytecode come from?
If it is the case that this exists only in a limited number of Python 3 versions, some care is needed in crafting the deparse Python grammar so it exists only in those versions. I can help to ensure that; so not a big deal, but just something to note.
Harder though is taking something that works in https://github.com/zrax/pycdc and adapting that here. Underneath, sadly the two work totally differently and for things like this, uncompyle6 is the harder to adapt. pycdc seems to work more like an Python interpreter so adding an opcode independent of anything else is easier for it. Also pycdc keeps track of stack entries while uncompyle6 is doing a grammar derivation starting with disassembled bytecode as tokens.
What is needed and missing both here and in the pycdc bug report, is bytecode that reproduces this error. Even better we both would want minimal bytecode, that is the shortest example that shows the problem. Also it would be super to have the source code for that bytecode since obviously right now we can't get that from either program.
from python-uncompyle6.
Hi Rocky, I managed to find some unpyc3 code that fully resolved all the pyo files to py files.
http://modthesims.info/showthread.php?t=532279&c=1&ht=&page=2&pp=25#startcomment
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.