A RetroSearch Logo

Home - News ( United States | United Kingdom | Italy | Germany ) - Football scores

Search Query:

Showing content from https://mail.python.org/pipermail/python-dev/2003-December/040722.html below:

[Python-Dev] Re: "groupby" iterator

[Python-Dev] Re: "groupby" iteratorGreg 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

RetroSearch is an open source project built by @garambo | Open a GitHub Issue

Search and Browse the WWW like it's 1997 | Search results from DuckDuckGo

HTML: 3.2 | Encoding: UTF-8 | Version: 0.7.4