[Python-Dev] generator comprehension syntax,
was: accumulator display syntax
Greg Ewing
greg at cosc.canterbury.ac.nz
Sun Oct 19 20:45:00 EDT 2003
Raymond Hettinger <python at rcn.com>:
> Is Phil's syntax acceptable to everyone?
>
> (yield: x*x for x in roots)
I could probably live with it, but it would be
so much nicer if the "yield" could be dispensed
with.
Greg Ewing, Computer Science Dept, +--------------------------------------+
University of Canterbury, | A citizen of NewZealandCorp, a |
Christchurch, New Zealand | wholly-owned subsidiary of USA Inc. |
greg at cosc.canterbury.ac.nz +--------------------------------------+
More information about the Python-Dev
mailing list