how to join two Dictionary together?

Michael.Coll-Barth at VerizonWireless.com Michael.Coll-Barth at VerizonWireless.com
Tue Aug 30 11:02:14 EDT 2005


update works like append for lists

a = {}
a['a']='a'
a['c']='c'
b={}
b['b'] = 'b'
c={}
c.update(a)
c.update(b)



-----Original Message-----
From:
python-list-bounces+michael.coll-barth=verizonwireless.com at python.org
[mailto:python-list-bounces+michael.coll-barth=verizonwireless.com at pytho
n.org]On Behalf Of DENG
Sent: Tuesday, August 30, 2005 10:45 AM
To: python-list at python.org
Subject: how to join two Dictionary together?



dict1={...something...}

dict2={...somethind else ..}

dict1 + dict2


that's does works ..:(, it's not like List...


anyone can tell me how to get it?

thanks in advance

-- 
http://mail.python.org/mailman/listinfo/python-list
___________________________________________________________________
The information contained in this message and any attachment may be
proprietary, confidential, and privileged or subject to the work
product doctrine and thus protected from disclosure.  If the reader
of this message is not the intended recipient, or an employee or
agent responsible for delivering this message to the intended
recipient, you are hereby notified that any dissemination,
distribution or copying of this communication is strictly prohibited.
If you have received this communication in error, please notify me
immediately by replying to this message and deleting it and all
copies and backups thereof.  Thank you.




More information about the Python-list mailing list