[issue11462] Peephole creates duplicate and unused constants

Raymond Hettinger report at bugs.python.org
Fri Mar 11 05:37:59 CET 2011


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

Sorry Eugene, but I'm not willing to add that much complexity to save a few bytes.  This was a known issue and long ago we choose to leave it as-is.  In the future when constant folding is done at the AST level, we'll get more extensive optimizations and they won't produce duplicate or unused constants as a by-product.

----------
assignee:  -> rhettinger
nosy: +rhettinger
priority: normal -> low

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


More information about the Python-bugs-list mailing list