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:
[EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED]
n.org]On Behalf Of DENG
Sent: Tuesday, August 30, 2005 10:45 AM
To: python-list@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.

-- 
http://mail.python.org/mailman/listinfo/python-list

Reply via email to