__lt__ and __gt__ for lazyT

Fixes #2228
This commit is contained in:
Leonel Câmara
2019-07-10 12:25:40 +01:00
committed by GitHub
parent 14c1b3e400
commit f307fe7d56
+6
View File
@@ -392,6 +392,12 @@ class lazyT(object):
def __eq__(self, 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):
return str(self) != str(other)