extracting code objects from .pyc

Dmitry Borisov jbors at mail.ru
Sat May 29 02:48:59 EDT 2004


Did you try this ?
http://www.crazy-compilers.com/decompyle/
 
----- Original Message ----- 
Subject: extracting code objects from .pyc


> Could someone please tell me what should be done to extract a code
> object from a .pyc? Poking through the source I find examples of using
> PyMarshal_ReadLastObjectFromFile to get it, but when I tryed this myself
> it wouldn't work, so I'm wondering what I might be doing wrong. One
> difference is that the files have already been loaded to ram (by my
> bootloader), so I was using PyMarshall_ReadObjectFromString instead.





More information about the Python-list mailing list