On Tue, Sep 11, 2012 at 12:41 PM, Victor Stinner <victor.stinner at gmail.com> wrote: > Hi, >> Here are some progress on my astoptimizer project. If you are interested by > the optimizer, run it on your own project or help me to implement more > optimizations. >> http://pypi.python.org/pypi/astoptimizer > https://bitbucket.org/haypo/astoptimizer >> --- >> The last version (0.3) works on Python 2.6-3.3 and implements the > following optimizations: >> * Call builtin functions if arguments are constants. Examples: >> - len("abc") => 3 > - ord("A") => 65 Does it preserve python semantics? What if you change the len builtin?