We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 53257d1 commit 040cc15Copy full SHA for 040cc15
1 file changed
vicutils/printBin.py
@@ -68,9 +68,13 @@ def __repr__(self):
68
return str(self)
69
70
def __eq__(self, value):
71
+ if isinstance(value, BinaryNode):
72
+ return self.val == value.val
73
return self.val == value
74
75
def __lt__(self, value):
76
77
+ return self.val < value.val
78
return self.val < value
79
80
0 commit comments