[Python-Dev] accumulator display syntax
Guido van Rossum
guido at python.org
Fri Oct 17 13:15:21 EDT 2003
More information about the Python-Dev mailing list
Fri Oct 17 13:15:21 EDT 2003
- Previous message: [Python-Dev] accumulator display syntax
- Next message: [Python-Dev] accumulator display syntax
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
> 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/~guido/)
- Previous message: [Python-Dev] accumulator display syntax
- Next message: [Python-Dev] accumulator display syntax
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
More information about the Python-Dev mailing list