This issue tracker has been migrated to GitHub, and is currently read-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.

Author novalis_dt
Recipients novalis_dt
Date 2008-11-14.21:47:34
SpamBayes Score 0.00016461509
Marked as misclassified No
Message-id <1226699259.32.0.049436327998.issue4327@psf.upfronthosting.co.za>
In-reply-to
Content
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
History
Date User Action Args
2008-11-14 21:47:39novalis_dtsetrecipients: + novalis_dt
2008-11-14 21:47:39novalis_dtsetmessageid: <1226699259.32.0.049436327998.issue4327@psf.upfronthosting.co.za>
2008-11-14 21:47:38novalis_dtlinkissue4327 messages
2008-11-14 21:47:38novalis_dtcreate