[issue11549] Build-out an AST optimizer, moving some functionality out of the peephole optimizer
Eugene Toder
report at bugs.python.org
Thu Sep 6 05:42:50 CEST 2012
Eugene Toder added the comment:
If I'm not missing something, changing
x in [1,2]
to
x in (1,2)
and
x in {1,2}
to
x in frozenset([1,2])
does not change any error messages.
Agreed that without dynamic compilation we can pretty much only track literals (including functions and lambdas) assigned to local variables.
----------
_______________________________________
Python tracker <report at bugs.python.org>
<http://bugs.python.org/issue11549>
_______________________________________
More information about the Python-bugs-list
mailing list