Created
October 5, 2017 21:09
-
-
Save tom-henderson/8231cc26feb5b9e5a082e642a30bca5f to your computer and use it in GitHub Desktop.
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
class Delta: | |
def __init__(self,old,new): | |
newset = set(new.rules) | |
oldset = set(old.rules) | |
self.deleted = list(oldset - newset) | |
self.added = list(newset - oldset) | |
self.retained = list(oldset & newset) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment