This [1] is a bytecode optimizer for Python - it takes the bytecode from CPython's compiler, and outputs bytecode with a few select optimizations.
Anyone know of someone taking this idea further?
[1] http://code.activestate.com/recipes/277940-decorator-for-bin... - it's old, for Python2.4