Skip to content

Instantly share code, notes, and snippets.

@dsaiztc
Created April 11, 2017 16:25
Show Gist options
  • Save dsaiztc/8e75b8541e6e8460a27d6ced20229fbd to your computer and use it in GitHub Desktop.
Save dsaiztc/8e75b8541e6e8460a27d6ced20229fbd to your computer and use it in GitHub Desktop.
Update dict
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