[Python-ideas] Allow using ** twice

Christian Heimes christian at python.org
Thu Jun 6 16:58:36 CEST 2013


Am 06.06.2013 16:46, schrieb Ram Rachum:
> I'd like to be able to use ** twice (using 2 different dicts) when
> calling a function, and have them both feed arguments into the function.

-1. It's trivial to do so with a few lines of code:

kwargs = {}
kwargs.update(d1)
kwargs.update(d2)
kwargs.update(d3)
...

func(**kwargs)

Christian



More information about the Python-ideas mailing list