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
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
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
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