I could see this being an option, but to someone unfamiliar with it, it 
might seem strange that * unpacks iterables, ** unpacks dicts, and *** is a 
special thing only for keyword arguments that mostly behaves like **.

On Friday, April 12, 2019 at 11:26:37 AM UTC-4, Bruce Leban wrote:
>
>
> On Fri, Apr 12, 2019, 8:12 AM Viktor Roytman <viktor...@gmail.com 
> <javascript:> wrote:
>
>>
>>     >>> func(**{'a': 1, 'b': 2})
>>     Traceback (most recent call last):
>>       File "<stdin>", line 1, in <module>
>>     TypeError: func() got an unexpected keyword argument 'b'
>>
>
> Perhaps func(***kws)?
>
> I think this is a real problem given the frequent convention that you can 
> freely add fields to json objects with the additional fields to be ignored.
>
_______________________________________________
Python-ideas mailing list
Python-ideas@python.org
https://mail.python.org/mailman/listinfo/python-ideas
Code of Conduct: http://python.org/psf/codeofconduct/

Reply via email to