RE: how to join two Dictionary together?



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@xxxxxxxxxx
[mailto:python-list-bounces+michael.coll-barth=verizonwireless.com@pytho
n.org]On Behalf Of DENG
Sent: Tuesday, August 30, 2005 10:45 AM
To: python-list@xxxxxxxxxx
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.

.



Relevant Pages

  • RE: The Scope and Ownership of fedora-list
    ... product doctrine and thus protected from disclosure. ... distribution or copying of this communication is strictly prohibited. ... read messages from the public lists. ...
    (Fedora)
  • RE: List etiquette question
    ... to decide whether or not it's worth the effort in trying to educate ... Here (as on most technical mailing lists) the custom is for snipped, ... If you are not the intended recipient, you are hereby notified that any ... dissemination of this communication is strictly prohibited. ...
    (Fedora)
  • Re: HP-UX question
    ... Actually that only lists the files and directories in /, you would have to do for ... is an equivalent forum for HP-UX? ... If you are neither the intended recipient nor 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. ...
    (comp.sys.hp.mpe)
  • Re: Qustion to the list
    ... In fact, the insistence on precision may interfere with the intent of the group, which is communication, rather than slamming doors. ... I'm subscribed to thirteen mailing lists. ... And absolutely nobody responding was confused about what the term "list" meant to the original poster. ... Ourdebate.com lifts free debate between writers and dilutes it with ads. ...
    (rec.arts.sf.composition)
  • Re: RSVP (and pinatas)
    ... I don't agree that it stands to reason they don't want communication - ... that why people put themselves on Do Not Call lists or have ... it's no big deal for a parent to ...
    (misc.kids)