bcode Namespace Reference

Python Byte Code utility functions. More...


Functions

def count
def main

Variables

int MAX_BCODE = 150


Detailed Description

Python Byte Code utility functions.

count(fn) - count the number of times each byte code appears in a code object.


Function Documentation

def bcode::count (   fn  ) 

Compile the python source file named fn.
Count all the bytecodes in the file.
Return a list of counts indexed by bcode.

def bcode::main (   fn  ) 

Count the bytecodes in the file, fn,
and print them out in human-readable form.


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