On Sun, Aug 30, 2020 at 2:43 AM Greg Ewing <greg.ew...@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)
*Pronouns: he/him **(why is my pronoun here?)*
<http://feministing.com/2015/02/03/how-using-they-as-a-singular-pronoun-can-change-the-world/>
_______________________________________________
Python-ideas mailing list -- python-ideas@python.org
To unsubscribe send an email to python-ideas-le...@python.org
https://mail.python.org/mailman3/lists/python-ideas.python.org/
Message archived at 
https://mail.python.org/archives/list/python-ideas@python.org/message/D5J6XSHDK6BNSRXZJYE2W54HAD7ZCP2Y/
Code of Conduct: http://python.org/psf/codeofconduct/

Reply via email to