Updating python dictionary

Fredrik Lundh fredrik at pythonware.com
Mon Sep 8 00:02:35 CEST 2008


andyhume at gmail.com wrote:

> Is there a clever way to do this, or should I loop through both,
> essentially creating a brand new dict?

since none of your dictionaries contain the keys you want in the final 
dictionary, creating a brand new dict sounds pretty clever to me.

</F>




More information about the Python-list mailing list