Merge pull request #2229 from leonelcamara/patch-32
__lt__ and __gt__ for lazyT
This commit is contained in:
@@ -392,6 +392,12 @@ class lazyT(object):
|
|||||||
def __eq__(self, other):
|
def __eq__(self, other):
|
||||||
return str(self) == str(other)
|
return str(self) == str(other)
|
||||||
|
|
||||||
|
def __lt__(self, other):
|
||||||
|
return str(self) < str(other)
|
||||||
|
|
||||||
|
def __gt__(self, other):
|
||||||
|
return str(self) > str(other)
|
||||||
|
|
||||||
def __ne__(self, other):
|
def __ne__(self, other):
|
||||||
return str(self) != str(other)
|
return str(self) != str(other)
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user