But, indexing does stretch quite far in the current Python syntax and semantics (in Python's *pragmatics* you're supposed to use it far more restrainedly).
Which is why I didn't like the 'sum[x for x in S]' notation much. Let's look for an in-line generator notation instead. I like
sum((yield x for x in S))
but perhaps we can make this work:
sum(x for x in S)
(Somebody posted a whole bunch of alternatives that were mostly picking random delimiters; it didn't look like the right approach.)
--Guido van Rossum (home page: http://www.python.org/%7Eguido/)