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/040619.html below:

[Python-Dev] Re: "groupby" iterator

[Python-Dev] Re: "groupby" iterator [Python-Dev] Re: "groupby" iteratorGreg Ewing greg at cosc.canterbury.ac.nz
Tue Dec 2 18:42:11 EST 2003
Thomas Heller <theller at python.net>:

> The latter has another advantage (or is this a disadvantage of the
> former?): You can invoke
> 
>   lambda x: x.something
> 
> with a keyword arg, which would not be possible with a C implemented
> function, I assume.

If you're asking whether a C function can have a keyword argument
whose name is determined at runtime, I think that could be arranged --
it would just be a matter of concocting the appropriate arguments to
PyArg_ParseTupleAndKeywords dynamically.

As to a user-friendly syntax for invoking it, maybe something like

   arg.x.something

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