Raymond Hettinger added the comment: I applaud any effort to move constant folding out of the peepholer and into AST. ---------- _______________________________________ Python tracker <report at bugs.python.org> <http://bugs.python.org/issue1346238> _______________________________________