Created
July 4, 2015 14:04
-
-
Save ericfourrier/9d1372ac22999f7fbbf7 to your computer and use it in GitHub Desktop.
merge list of python dictionnary
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
def merge_dict(list_dict): | |
return dict((k,v) for d in list_dict for (k,v) in d.items()) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment