Disassambling code in Python: What is in the .co_code-part
Calvelo Daniel
dcalvelo at pharion.univ-lille2.fr
Fri Oct 6 11:29:09 EDT 2000
Thomas Weholt <thomas at cintra.no> wrote:
: what is the content of the string-attr found in :
: someclass.__class__.__dict__['some'].func_code.co_code ?
:
: Where can I find documentation of how Python is structured at this level?
:
: I want to make a semi-disassembler/optimizer/debugging kinda thing.
Have a look at:
* module 'dis' (disassembler module, in Lib/dis.py from the source distro)
* bytecodehacks : http://bytecodehacks.sourceforge.net
Those should give you lots of brain food.
HTH, DCA
-- Daniel Calvelo Aros
calvelo at lifl.fr
More information about the Python-list
mailing list