I'm trying to make a decoder for .pyc files, and need to figure out how the structure is.
I have found several suggestions but they all use the marshal module to load the code and then dis to disassemble it.
I have found a few simple explanations of the general structure which led me to build a simple decompiler. The best post was this: How to create a code object in python?
However, I need more direct information to be able to decode all the information. Such as what markers indicate what, what flags are used and how to decode them and type decoding.
So does anyone know where I can find any documentation on how to decode a pyc file? and/or its general structure?
Regards