De-compiler for *.pyc files

Zarkon & Zena nospam at 127.0.0.1
Sat Mar 11 11:18:47 EST 2000


Ok, I have played with "dis" module a little bit, but don't I need to know
the names of the functions inside the *.pyc file before I can get at them?

Walter Williams
zarkon at uswest.net


"Michael Hudson" <mwh21 at cam.ac.uk> wrote in message
news:m3ya7qbi5k.fsf at atrus.jesus.cam.ac.uk...
> "Zarkon & Zena" <nospam at 127.0.0.1> writes:
>
> > Does anyone have a "decompiler" that I can use to re-create the original
> > *.py scripts from the "compiled" *.pyc files?
> > I am stuck trying to make changes to some legacy Python code that I do
not
> > have the source for.
> > Any help or suggestions would be greatly appreciated.
>
> Do to www.google.com, type "decompyle" into the box, and then hit "I'm
> feeling lucky".
>
> Warning: It probably won't work.  But it's worth a try.
>
> Failing that, you can just use the `dis' module on the functions and
> work out what they do by hand, which is not very hard, but very
> tedious.
>
> Cheers,
> M.
>
> --
> very few people approach me in real life and insist on proving they are
> drooling idiots.                         -- Erik Naggum, comp.lang.lisp





More information about the Python-list mailing list