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, uglemat
Date 2013-08-01.11:23:32
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1375356212.93.0.797789110077.issue18612@psf.upfronthosting.co.za>
In-reply-to
Content
Today there are list comprehensions, set comprehensions, dict comprehensions and then... there are generator expressions, which apparently was called 'generator comprehensions' in the original PEP, don't know why that was changed. Some questions arises:

 * Are generator expressions a type of list comprehension, or are generator expressions to be considered their own thing.

 * Does 'list comprehension' mean a type of comprehension that happens to return a list, or is it to be considered more of a general concept.

I usually talk about 'list comprehension' as a type of comprehension, and 'generator expression' as another type of comprehension, and after investigating whether or not that is correct I couldn't find an answer. On the wikipedia article on list comprension (http://en.wikipedia.org/wiki/List_comprehension#Python) they list generator expressions as well, indicating that it's a type of list comprehension. I think there's a lot of confusion to be had here, and that the documentation should clarify what exactly is meant by 'list comprehensions', regardless of what happens to be the case.

I haven't really a bug report before, so forgive me if I'm doing something wrong. :)
History
Date User Action Args
2013-08-01 11:23:32uglematsetrecipients: + uglemat, docs@python
2013-08-01 11:23:32uglematsetmessageid: <1375356212.93.0.797789110077.issue18612@psf.upfronthosting.co.za>
2013-08-01 11:23:32uglematlinkissue18612 messages
2013-08-01 11:23:32uglematcreate