learning to use iterators

Ben Finney ben+python at benfinney.id.au
Wed Dec 24 14:58:28 EST 2014


Terry Reedy <tjreedy at udel.edu> writes:

> On 12/23/2014 4:25 PM, Ben Finney wrote:
> > To be clear: there's nothing about parentheses that produce a
> > generator expression.
>
> Incorrect; parentheses *are* as a part of 'generator expression'.
> From the doc:
> generator_expression ::=  "(" expression comp_for ")"

Thanks for the correction.

-- 
 \      “Yesterday I saw a subliminal advertising executive for just a |
  `\                                           second.” —Steven Wright |
_o__)                                                                  |
Ben Finney




More information about the Python-list mailing list