[Python-Dev] generator expression syntax (original) (raw)
Greg Ewing greg at cosc.canterbury.ac.nz
Wed Mar 24 18:53:00 EST 2004
- Previous message: [Python-Dev] generator expression syntax
- Next message: [Python-Dev] generator expression syntax
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
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 +--------------------------------------+
- Previous message: [Python-Dev] generator expression syntax
- Next message: [Python-Dev] generator expression syntax
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]