1.9 bytecodehacks.rationalize

This module was originally written by Corran Webster - thanks.

The module implements a few simple rationalizations of bytecode - simplfiying jumps, eliminating dead code, removing unused variables, that kind of stuff.

It's slow, however.

rationalize (code)
In succession, calculates constant expressions, removes line numbers, simplifies jumps, removes constant jumps, simplifies jumps again and removes unused names and locals.

Send comments to mwh@python.net