[issue4327] Patch: simplify complex constant assignment statements
David Turner
report at bugs.python.org
Fri Nov 14 22:50:42 CET 2008
David Turner <novalis at novalis.org> added the comment:
Oh, and this also involved the creation of an additional statement type,
unfortunately. The statement type, Seq, represents a sequence of
statements. This is so that we can replace a single assign with
multiple assigns. If that's no good, then we could do an If with test=1
instead, since the compiler knows to optimize that out. We could also
go into the parent statement and replace the body, but that would
require significant rejiggering of the optimizer, and significant
additional complexity.
_______________________________________
Python tracker <report at bugs.python.org>
<http://bugs.python.org/issue4327>
_______________________________________
More information about the Python-bugs-list
mailing list