-
-
Save cosmic-cortex/70205f6dc95671981f52e127aad6cb12 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 Record(dict): | |
def __hash__(self): | |
proxy = tuple(self.items()) | |
return hash(proxy) | |
def __setitem__(self, key, value): | |
raise NotImplemented("Modifying values is not supported.") |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment