Commit 51c00da3 authored by olivier R-D's avatar olivier R-D

make Guid hashable

parent 6d0f686c
......@@ -275,6 +275,9 @@ class Guid(FrozenClass):
def to_binary(self):
return self.uuid.bytes
def __hash__(self):
return hash(self.uuid.bytes)
@staticmethod
def from_binary(data):
g = Guid()
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment