What is the role of F in dict(E, **F)

Marc Boeren m.boeren at guidance.nl
Mon Sep 5 10:57:59 CEST 2005



> As I understand update() is used to merge two dictionaries, 
> for example
> >>> D={'a':1, 'b':2}
> >>> E={'b':4,'c':6}
> >>> D.update(E)
> >>> D
> {'a': 1, 'c': 6, 'b': 4}
> >>>
> 
> But what is the role of **F?


>>> D={'a':1, 'b':2}
>>> E={'b':4,'c':6}
>>> D.update(E, a=3)
>>> D
{'a': 3, 'c': 6, 'b': 4}


Ciao, Marc.



More information about the Python-list mailing list