Updating python dictionary

Fredrik Lundh fredrik at pythonware.com
Sun Sep 7 18:02:35 EDT 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