[Python-ideas] Addition to operator module: starcaller
michael.selik at gmail.com
Fri Jul 29 22:59:18 EDT 2016
On Fri, Jul 22, 2016 at 12:52 AM Greg Ewing <greg.ewing at canterbury.ac.nz>
> Daniel Spitz wrote:
> > I'm
> > not sure and don't have a strong opinion about the original removal of
> > apply.
> I expect it was removed simply because the * and ** calling
> syntax makes it unecessary (before that was introduced,
> apply was the only way of getting that funcionality).
> If it's to be reintroduced, the operator module would seem
> to be the right place for it.
If it goes in the operator module, then the name ``operator.starcall``
seems better than ``starcaller``. I'd say ``operator.unpack`` would be
better, except for the confusion between unpacking assignment and unpacking
as arguments. I suppose ``operator.apply`` would be OK, too. Is there a
better vocabulary word for unpack-as-args?
-------------- next part --------------
An HTML attachment was scrubbed...
More information about the Python-ideas