On Sun, Aug 30, 2020 at 2:43 AM Greg Ewing <greg.ewing@canterbury.ac.nz> wrote:
On 30/08/20 7:45 pm, Guido van Rossum wrote:
> I think we should say no to d[*args], because that will just become
> d[(*args)],

Which is also equivalent to d[args]. But if we have d[**kwds]
without d[*args] I expect there will forever be people asking
how to do d[*args]. So maybe allow it but just ignore the *.

I don't think so. People who are asking for that are probably not expecting what they will get.

Dropping such an operator silently will probably cause more confusion than it resolves. IIRC there's a situation in C where you can call a function pointer using either `(fp)(args)` or `(*fp)(args)`, and that drives me nuts.

If this question is asked a lot, a StackOverflow entry for it can be crafted to explain it once and for all. (We've done this for other things.)

--
--Guido van Rossum (python.org/~guido)