PYS file

Gabriel Genellina gagsl-py2 at yahoo.com.ar
Mon Jan 28 13:54:05 EST 2008


On 28 ene, 13:05, azrael <jura.gro... at gmail.com> wrote:

> A I Understood correctly, pyc files are compiled py scripts. Is it
> possible to decomplite them.
> I guess it's possible, but how hard is it.

You want to get back the Python source? Look for the "decompyle"
package. The last published release works for version 2.3; there is a
paid service for newer versions (you send the .pyc, they give back
the .py)

At least you may use the dis module to disassemble the compiled .pyc
into the correspoding VM instructions - if you are happy reading
that...

--
Gabriel Genellina



More information about the Python-list mailing list