extracting code objects from .pyc

P

Phil Frost

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.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

Forum statistics

Threads
473,756
Messages
2,569,535
Members
45,007
Latest member
OrderFitnessKetoCapsules

Latest Threads

Top