On Fri, Apr 12, 2019, 8:12 AM Viktor Roytman <[email protected]
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
[email protected]
https://mail.python.org/mailman/listinfo/python-ideas
Code of Conduct: http://python.org/psf/codeofconduct/