Can I decompile PYC files?

Jonathan Giddy jon at bezek.dstc.monash.edu.au
Tue Jan 23 18:26:41 EST 2001


noahspurrier at my-deja.com writes:

] 
] A process just deleted my .py file. I still have the .pyc file.
] Can I recover anything? I'm desparate. It doesn't have to be perfect.
] Thanks,
] Noah
] 
You can try using decompyle, which can be found using any search engine.  

If that doesn't work, I recently wrote my own decompiler which works pretty
well on 1.5.2 pyc/pyo files (or 2.0 files that don't use list comprehension).  
However, it's on my home machine, so I can't get to it right now.

Let me know how decompyle goes.  

Jon 
jon at dstc.edu.au




More information about the Python-list mailing list