Python "decompyle"

Terry Reedy tjreedy at udel.edu
Sun Aug 15 21:57:30 CEST 2004


"David Dürrenmatt" <dd at guv.ethz.ch> wrote in message
news:opscrrsaxt5kr1pg at news.swissonline.ch...
> If I try to use decompyle (decompyle-2.3) for pyc-files < version 2.0, I
> get an error with marshal_20 (ImportError: dynamic module does not define
> init function (initmarshal_20)  ). marshal_20 was compiled to a so-file
> using gcc.
>
> Does anybody know where this error could come from and how to solve it?

Your post suggests that your build does work for .pyc files >= version 2.0.
Is this correct?  Does the doc for decompyle say it should work for earlier
versions?

The creation of .pyc files is a CPython implementation detail and the
format is version specific.  So it is easy to imagine that dycompyle might
give up or occasionally misfire with ancient .pycs.  But maybe the answer
lies elsewhere.

Terry J. Reedy






More information about the Python-list mailing list