Created
June 12, 2021 09:54
-
-
Save levwu/cef49854b3a38869e31c8fc8c14b7b5b 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
def __eq__(self, other): | |
return other.p == self.p and other.q == self.q | |
def __hash__(self): | |
return hash((self.p, self.q)) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment