pycdc icon indicating copy to clipboard operation
pycdc copied to clipboard

Decompile PyCodeObject from CPython

Open iamdavidcz opened this issue 4 years ago • 1 comments

Hello,

Is there an API to programmatically decompile PyCodeObject from CPython?

Regards, Dawid

iamdavidcz avatar Jun 11 '21 07:06 iamdavidcz

No, there's no API or library currently, let alone CPython bindings; the source is just compiled into the two executables (pycdc and pycdas). I suppose you could just write the .pyc headers and call pycdc from a subprocess though...

zrax avatar Jun 14 '21 17:06 zrax