how to join two Dictionary together?

Aahz aahz at pythoncraft.com
Tue Aug 30 13:41:38 EDT 2005


In article <1125413088.326703.64590 at g43g2000cwa.googlegroups.com>,
DENG <polytechnique at gmail.com> wrote:
>
>dict1={...something...}
>dict2={...somethind else ..}
>dict1 + dict2

Another option to look into: if you're only using the dict keys and not
the valus, maybe you should use sets.
-- 
Aahz (aahz at pythoncraft.com)           <*>         http://www.pythoncraft.com/

The way to build large Python applications is to componentize and
loosely-couple the hell out of everything.



More information about the Python-list mailing list