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 uglemat
Recipients docs@python, r.david.murray, uglemat
Date 2013-08-01.13:00:44
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1375362044.65.0.916069751782.issue18612@psf.upfronthosting.co.za>
In-reply-to
Content
Yeah I think the differences are pretty easy to comprehend. To be honest the reason I came here is that I had an argument where someone commented on my code (where I used a generator expression) saying something akin to "list comprehensions are nice", so I replied "actually, that's a generator expression, which are very similar but behave differently". The response was that the two concepts are one and the same. I couldn't really say that that's incorrect, but I think it's very confusing for beginners if people are talking about generator expressions like they are list expressions because they behave so differently and the documentation for list comprehensions doesn't mention generator expressions. I was kind of longing for a definite answer so I could say "Nay, thou shall differentiate between list comprehensions and generator expressions". Is it right to correct someone and say that generator expressions are in fact *not* generator expressions? Maybe I'm blowing this out of proportions. :)
History
Date User Action Args
2013-08-01 13:00:44uglematsetrecipients: + uglemat, r.david.murray, docs@python
2013-08-01 13:00:44uglematsetmessageid: <1375362044.65.0.916069751782.issue18612@psf.upfronthosting.co.za>
2013-08-01 13:00:44uglematlinkissue18612 messages
2013-08-01 13:00:44uglematcreate