Skip to content

Instantly share code, notes, and snippets.

@rainulf
Created November 27, 2019 16:12
Show Gist options
  • Save rainulf/3a9c76520290b71ddaef5c73025faa2f to your computer and use it in GitHub Desktop.
Save rainulf/3a9c76520290b71ddaef5c73025faa2f to your computer and use it in GitHub Desktop.
Python: dict diff
value = { k : b.data[k] for k in set(b.data) - set(a.data) }
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment