
Oct. 29, 2014
11:23 p.m.
How would this be different from using functools.partial? On Wed, Oct 29, 2014, 23:40 Antony Lee <antony.lee@berkeley.edu> wrote:
A simple suggestion: add "operator.call" and "operator.__call__", which would provide a function like Python2's "apply" (but it'd be called with already unpacked arguments, i.e. operator.call(f, *args, **kwargs)). Why? To be able to pass it as an argument to other function, just like the other functions defined in the "operator" module.
Antony _______________________________________________ Python-ideas mailing list Python-ideas@python.org https://mail.python.org/mailman/listinfo/python-ideas Code of Conduct: http://python.org/psf/codeofconduct/