dismantle Namespace Reference

Dismantles a .py file by compiling it into a code object and recursively dismantling and disassembling the code object. More...


Functions

def dismantle_file
def dismantle
def rdismantle
def main

Variables

string __usage__
int STRINGTOOLONG = 32


Detailed Description

Dismantles a .py file by compiling it into a code object and recursively dismantling and disassembling the code object.


Function Documentation

def dismantle::dismantle_file (   fn  ) 

Dismantle the .py file, fn.
Returns the root code object.

def dismantle::main ( void   ) 

Perform a dismantling of the source file, fn.

def dismantle::rdismantle (   co,
  parent = None 
)

Dismantle the code object, co.
Prints the co_* field values and
the co_code disassembly for each code object
in the file and recurses into any code objects
in the constant pool.


Variable Documentation

string dismantle::__usage__

Initial value:

"""Usage:
    dismantle.py sourcefilename.py
"""


Generated on Wed Feb 24 13:37:03 2010 for Python-on-a-chip by  doxygen 1.5.9