[issue11462] Peephole creates duplicate and unused constants

Raymond Hettinger report at bugs.python.org
Fri Mar 11 23:26:45 CET 2011


Raymond Hettinger <rhettinger at users.sourceforge.net> added the comment:

Sorry Eugene.  As the person who designed, implemented, and maintains the peephole optimizer, I need to reject the patch.

If better constant folding is wanted, the work needs to be done with AST, not with bytecode.  I would welcome a patch.

Thomas, thanks for your input.

----------
nosy: +rhettinger
status: open -> closed

_______________________________________
Python tracker <report at bugs.python.org>
<http://bugs.python.org/issue11462>
_______________________________________


More information about the Python-bugs-list mailing list