[Python-ideas] Addition to operator module: starcaller

Michael Selik michael.selik at gmail.com
Thu Jul 21 14:04:32 EDT 2016

On Thu, Jul 21, 2016 at 12:37 PM Daniel Spitz <spitz.dan.l at gmail.com> wrote:

> Alternatively a form of "starcaller" or "unpackcaller" defined roughly as
> partial(apply) could be added to the operator module in the capacity I
> proposed above. The only possible advantage here is aesthetic; it fits
> conceptually with the rest of the module as a callable capturing a
> repeatable operation that is normally only possible with special syntax. It
> also disallows using apply in "non-curried" contexts.

It does seem to fit with the theme of the operator module. One major use of
the operator module is providing an alternative to lambdas. In this case,
the clear alternative is ``g = lambda args, kwargs: f(*args, **kwargs)``
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.python.org/pipermail/python-ideas/attachments/20160721/0349a05d/attachment-0001.html>

More information about the Python-ideas mailing list