[Python-Dev] Re: accumulator display syntax

Guido van Rossum guido at python.org
Fri Oct 17 17:19:30 EDT 2003


> Again, why parens?  Why not
> 
>     sum(<x for x in S>, start=5)
>     sum(<x for x in S>, 5)

Because the parser doesn't know whether the > after S is the end of
the <...> brackets or a binary > operator.

(Others can answer your other questions.)

--Guido van Rossum (home page: http://www.python.org/~guido/)



More information about the Python-Dev mailing list