Giter VIP home page Giter VIP logo

Comments (4)

rocky avatar rocky commented on September 15, 2024

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.

JorianWoltjer avatar JorianWoltjer commented on September 15, 2024

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.

mosadegh22 avatar mosadegh22 commented on September 15, 2024

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.

rocky avatar rocky commented on September 15, 2024

@mosadegh22 file a proper bug report in decompyle3 and I might investigate when I am able.

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.