Is there a better/simpler way to filter blank lines?

Arnaud Delobelle arnodel at googlemail.com
Wed Nov 5 16:23:57 EST 2008


Lie <Lie.1296 at gmail.com> writes:
> What makes a generator expression is "<exp> for <var-or-tuple> in
> <exp>".
>
> Parenthesis is generally required because without it, it's almost
> impossible to differentiate it with the surrounding. But it is not
> part of the formally required syntax.

... But *every* generator expression is surrounded by parentheses, isn't
it?

-- 
Arnaud



More information about the Python-list mailing list