Source

astoptimizer / astoptimizer / ast_tools.py

Author Commit Message Labels Comments Date
Victor Stinner
Remove empty try/except: "try: pass except: pass"
Victor Stinner
Fixes for Python 3.4
Victor Stinner
Unroll loops
Victor Stinner
{key: value for key, value in {1: 2, 3: 4}} => {1: 2, 3: 4}
Victor Stinner
clean optimizer_iter()
Victor Stinner
{x for x in "abc"} => set(["a", "b", "c"])
Victor Stinner
x in (1, 2, 3) => x in {1, 2, 3}
Victor Stinner
Fix optimizations on GeneratorExpr
Victor Stinner
use literal list and set
Victor Stinner
Optimize iterators and generators
Victor Stinner
finish to drop support of python 2.5
Victor Stinner
move code to ast_tools