extracting code objects from .pyc

Phil Frost indigo at bitglue.com
Sat May 29 02:06:08 EDT 2004


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