Open GoogleCodeExporter opened 8 years ago
Make that "As it stands July 21, 2011"
Sorry, got a little charged up about these things.
This does seem to be the most complete free version.
How ever many things are missing as I stated.
There is a 2.7 only version that appears to be yet a another fork of your code
here or the original decompile (need to find that link).
It appears to be mostly complete for 2.7.
One thing this 2.7 replaces is all those marshal C files with a single
"marshal.py" making it portable and doing away with having to build those PYD
DLLs et al.
Unfortunately it is hard coded with 2.7 changes like the opcode
POP_JUMP_IF_FALSE.
Incidentally I need one to decompile 2.6.4 PYCs.
I was able to fix some 2.6+ problems by copying over stuff over from that
version.
Like the total absence of STORE_MAP handling.
It is still way off unfortunately.
It's too bad the 2.7 guy didn't get with you here to combine his changes.
Furthermore there seems to be three or four different versions of "decompile"
under different names all broken or lacking at least up to 2.7.x to on degree
or another.
And maybe nice to have a 3.x version that might need to be an entire different
version.
I wonder.
Would it just be easier to make an entire new rewrite with clear goal to
support from all versions from a bottom baseline (say 2.0) to 2.7.x, or just
keep adding to one of the many different versions floating around?..
Original comment by macromon...@ymail.com
on 27 Aug 2011 at 5:14
The 2.7 only version
https://github.com/gstarnberger/uncompyle
Original comment by macromon...@ymail.com
on 27 Aug 2011 at 5:36
Good, I'll try your fork later, wish it will work well!
Several months ago, I download unpyc here, it gave me surprise also
disappointment.
Then I try to fix it.
I also write a 'marshal_26.py' to replace marshal_26.c, then inherit it and
make a litter change for lower version. Remove all dis files.
But I could not solve the problem of some structures, such as many and/or, eg:
if a and b and c or (d and e): pass
f = a and b and c or (d and e)
Then I gave up.
Original comment by www.eh...@gmail.com
on 12 Nov 2011 at 5:48
I just tried to decompile and verify Python standard library, of course my fix
verified failed many files.
I wish your fork will give me surprise.
Thanks!
Original comment by www.eh...@gmail.com
on 12 Nov 2011 at 5:58
Original issue reported on code.google.com by
macromon...@ymail.com
on 1 Aug 2011 at 3:42