Am 03.10.2018 um 21:52 schrieb Jonathan Fine:

def f(a, **kwargs): pass
f(a=1, **{'': 2})
f(a=1, **{'def': 2})
So I think Anders proposal works in CPython. I think you forgot the
**kwargs in the parameters to f.



Ah, yes. Thank you. So it works in CPython 2.7. But I'm curious, does it work in very old versions? I'm not saying that this is important, because language changes always are for new versions. However, Anders' claim that this not a language change seemed too broad to me. It may be that this change has very little cost, but it should not be dismissed.

Wolfram
_______________________________________________
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