[Python-Dev] Re: "groupby" iterator

Greg Ewing greg at cosc.canterbury.ac.nz
Thu Dec 4 18:44:03 EST 2003


Alexis Layton <alexis.layton at post.harvard.edu>:

> One simple style is to "infer" the lambda using positional
> arguments, for example:
> 
> 	(&1 + &2.foo())
> 
> This style of construct implies the lambda or function without really
> saying it, which may be too magical for Python.

I think it's ambiguous, too, since it's not clear how far
the lambda extends. Is

  ((&1 + &2), (&1 - &2))

one lambda returning a tuple, or a tuple containing
two lambdas?

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