On Wed, 05 Nov 2008 13:18:27 +1100, Ben Finney wrote:

> Marc 'BlackJack' Rintsch <[EMAIL PROTECTED]> writes:
> 
> Your example shows only that they're important for grouping the
> expression from surrounding syntax. As I said.
> 
> They are *not* important for making the expresison be a generator
> expression in the first place. Parentheses are irrelevant for the
> generator expression syntax.

Okay, technically correct but parenthesis belong to generator expressions 
because they have to be there to separate them from surrounding syntax 
with the exception when there are already enclosing parentheses.  So 
parenthesis are tied to generator expression syntax.

Ciao,
        Marc 'BlackJack' Rintsch
--
http://mail.python.org/mailman/listinfo/python-list

Reply via email to