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  ) 

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

Definition at line 40 of file dismantle.py.

def dismantle::main ( void   ) 

Dismantles the source file given as an arg.

Definition at line 158 of file dismantle.py.

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

Dismantles 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.

Definition at line 95 of file dismantle.py.


Variable Documentation

string dismantle::__usage__

Initial value:

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

Definition at line 21 of file dismantle.py.


Generated on Mon Oct 18 07:40:49 2010 for Python-on-a-chip by  doxygen 1.5.9