Strategy for determing difference between 2 very large dictionaries
Chris Rebert
clp at rebertia.com
Wed Dec 24 02:53:38 EST 2008
On Tue, Dec 23, 2008 at 11:46 PM, Gabriel Genellina
<gagsl-py2 at yahoo.com.ar> wrote:
<snip>
>
> Yes; but isn't a dict comprehension more adequate?
>
> [key: (dict1[key], dict2[key]) for key in common_keys if
> dict1[key]!=dict2[key]}
<nitpick severity="minor">
That initial [ should be a { of course.
Cheers,
Chris
--
Follow the path of the Iguana...
http://rebertia.com
More information about the Python-list
mailing list