[issue18612] More elaborate documentation on how list comprehensions and generator expressions relate to each other

2014-06-19 Thread uglemat
uglemat added the comment: Yeah, I guess it's pretty obvious that generator expressions are not list comprehensions from the glossary. I'll close the bug. -- status: open -> closed ___ Python tracker <http://bugs.pytho

[issue18612] More elaborate documentation on how list comprehensions and generator expressions relate to each other

2013-08-01 Thread uglemat
uglemat added the comment: > Is it right to correct someone and say that generator expressions are in fact > *not* generator expressions? Ups, I meant "Is it right to correct someone and say that generator expressions are in fact *not* list comprehensions?" All these

[issue18612] More elaborate documentation on how list comprehensions and generator expressions relate to each other

2013-08-01 Thread uglemat
uglemat added the comment: 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

[issue18612] More elaborate documentation on how list comprehensions and generator expressions relate to each other

2013-08-01 Thread uglemat
New submission from uglemat: 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