Message75889
This patch adds functionality to the optimizer to simplify complex
constant assignments like:
a, (b, c) = d, e = 1, (2, 3)
The simplification is:
a = 1
d = 1
b, c = e = 2, 3
Of course, the simplified version is semantically identical. But the
bytecode generated is faster, because there is less need to unpack
tuples. Naturally, this only works on constants:
a, b = 1, a is not the same as
a = 1
b = a |
|
Date |
User |
Action |
Args |
2008-11-14 21:47:39 | novalis_dt | set | recipients:
+ novalis_dt |
2008-11-14 21:47:39 | novalis_dt | set | messageid: <1226699259.32.0.049436327998.issue4327@psf.upfronthosting.co.za> |
2008-11-14 21:47:38 | novalis_dt | link | issue4327 messages |
2008-11-14 21:47:38 | novalis_dt | create | |
|