Giter VIP home page Giter VIP logo

Comments (2)

rocky avatar rocky commented on August 11, 2024

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.

johndpope avatar johndpope commented on August 11, 2024

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)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.