PYS file

Gabriel Genellina gagsl-py2 at
Mon Jan 28 19:54:05 CET 2008

On 28 ene, 13:05, azrael <jura.gro... at> 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

Gabriel Genellina

More information about the Python-list mailing list