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 nobody
Recipients
Date 2000-08-12.19:23:18
SpamBayes Score
Marked as misclassified
Message-id
In-reply-to
Content
The updated patch i submitted included the following changes:
    1. More explanation of listcomps in the docs.
    2. Modified test cases to use [(x, y) for ...].
    3. Added a test case to ensure [x, y for ...] is a SyntaxError.
    4. Cleaned up grammar by adding a "listmaker" rule.
    5. Temporary local name is now "__1__" instead of "1".
    6. Look up "append" once, outside the loop, instead of inside.

The optimization in #6, which is one of the things you were worried about, produces a noticeable speedup (up to 20% on very long lists).

Skip, i updated my tree & it looks like not all the patch got checked in.  Did you check in Doc/tut/tut.tex also?
History
Date User Action Args
2007-08-23 14:59:41adminlinkissue400654 messages
2007-08-23 14:59:41admincreate