We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent d25ffeb commit f963eb2Copy full SHA for f963eb2
Compiler/GC/types.py
@@ -390,8 +390,12 @@ def __invert__(self):
390
res = type(self)()
391
inst.notcb(self.n, res, self)
392
return res
393
- def __eq__(self, other):
394
- raise CompilerError('equality not implemented')
+ __lt__ = lambda self, other: regint(self) < other
+ __le__ = lambda self, other: regint(self) <= other
395
+ __gt__ = lambda self, other: regint(self) > other
396
+ __ge__ = lambda self, other: regint(self) >= other
397
+ __eq__ = lambda self, other: regint(self) == other
398
+ __ne__ = lambda self, other: regint(self) != other
399
def print_reg(self, desc=''):
400
inst.print_regb(self, desc)
401
def print_reg_plain(self):
0 commit comments