[Python-Dev] Re: "groupby" iterator

Greg Ewing greg at cosc.canterbury.ac.nz
Wed Dec 3 18:49:38 EST 2003


Zack Weinberg <zack at codesourcery.com>:

> If you're going to mess with lambda at all, please try to come up with
> a way for it not to be limited to a single expression.

That's not the direction I want to go in. Lambdas are best
for extremely small functions. For anything more complicated,
I believe you're better off using a def.

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