def func(**kwargs):
print(kwargs)
Are these two function calls identical?
d = {'id':1, 'name':'qwerty', 'dtype':3}
func1(**d)
func1(id=1, name='qwerty', dtype=3)
As far I understand, with a formal parameter in the form **arg
, it receives a dictionary, while the formal parameter as *arg
yields the tuple.
What is actually happening behind **kwargs
?