[Python-ideas] Make partial a built-in

David Mertz mertz at gnosis.cx
Tue Sep 20 13:48:23 EDT 2016


I find myself "partializing" in ways partial() doesn't support more often
than not. E.g.

lambda first, third: myfunc(first, 42, third)

I think it's good to have partial() in functools, but it's two orders of
magnitude less common than things that should be in builtins.

On Sep 20, 2016 9:42 AM, "Ryan Gonzalez" <rymg19 at gmail.com> wrote:
> lambda *args, **kw: myfunc(partial_arg, *args, **kw)
>
> which isn't more readable than just:
>
> partial(myfunc, partial_func)
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.python.org/pipermail/python-ideas/attachments/20160920/10ab0b66/attachment-0001.html>


More information about the Python-ideas mailing list