[Python-Dev] generator expression syntax
Greg Ewing
greg at cosc.canterbury.ac.nz
Wed Mar 24 18:53:00 EST 2004
Gareth McCaughan <gmccaughan at synaptics-uk.com>:
> It's not clear to me that lambdas are any more obviously a special
> construct than generator expressions.
If the absence of lambda is considered to make it look too
straightforward, we could always introduce a new mysterious-looking
keyword, and even throw in a colon for good measure...
g = (gamma: x*x for x in stuff)
:-)
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