Created
April 11, 2017 16:25
-
-
Save dsaiztc/8e75b8541e6e8460a27d6ced20229fbd to your computer and use it in GitHub Desktop.
Update dict
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
a.update(b) | |
c = dict(a, **b) | |
# Items from b will override the ones from a if conflict |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment