[Python-Dev] accumulator display syntax
Shane Holloway (IEEE)
shane.holloway at ieee.org
Fri Oct 17 13:55:53 EDT 2003
More information about the Python-Dev mailing list
Fri Oct 17 13:55:53 EDT 2003
- Previous message: [Python-Dev] accumulator display syntax
- Next message: [Python-Dev] accumulator display syntax
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
Guido van Rossum wrote:
> but perhaps we can make this work:
>
> sum(x for x in S)
Being able to use generator compressions as an expression would be
useful. In that case, I assume the following would be possible as well:
mygenerator = x for x in S
for y in x for x in S:
print y
return x for x in S
Thanks,
-Shane Holloway
- 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