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 gvanrossum
Recipients
Date 2004-03-22.19:39:03
SpamBayes Score
Marked as misclassified
Message-id
In-reply-to
Content
Logged In: YES 
user_id=6380

Only the outermost (last) iterable should be precomputed.

While

  (f(x,y) for x in A(y) for y in B)

is not the same as

  ((f(x,y) for x in A(y)) for y in B)

I think the scoping should be done similarly.
History
Date User Action Args
2007-08-23 15:31:38adminlinkissue872326 messages
2007-08-23 15:31:38admincreate