how to join two Dictionary together?

Will McGugan news at NOwillmcguganSPAM.com
Tue Aug 30 10:55:38 EDT 2005


DENG wrote:
> dict1={...something...}
> 
> dict2={...somethind else ..}
> 
> dict1 + dict2
> 
> 
> that's does works ..:(, it's not like List...

I think you want..

dict1.update(dict2)


Will McGugan
-- 
http://www.willmcgugan.com
"".join({'*':'@','^':'.'}.get(c,0) or chr(97+(ord(c)-84)%26) for c in 
"jvyy*jvyyzpthtna^pbz")



More information about the Python-list mailing list