Hi all,
I was googling a way to do something like
mydict=mydict.extend(additionaldict)

and someone on a forum recommends this:
mydict=dict(mydict, **additionaldict)
What is the ** doing here? I tried to look it up, but Google seems to
ignore it since it is punctuation. The poster on the forum says it
will put all elements of additionaldict in mydict that are not already
in mydict, which is the behavior I am looking for, but I am not sure
why this would be so. TIA.

-- 
Have a great day,
Alex (msg sent from GMail website)
[email protected]; http://www.facebook.com/mehgcap
_______________________________________________
Tutor maillist  -  [email protected]
To unsubscribe or change subscription options:
http://mail.python.org/mailman/listinfo/tutor

Reply via email to