Skip to content

Instantly share code, notes, and snippets.

@marc-hughes
Created October 31, 2013 15:56
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save marc-hughes/7252152 to your computer and use it in GitHub Desktop.
Save marc-hughes/7252152 to your computer and use it in GitHub Desktop.
Easily get records added / removed
old = set( some values )
new = set( some other values )
added = new.difference(old)
removed = old.difference(new)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment