recursion depth in __str__ fixed

This commit is contained in:
Fabian Joswig 2021-10-16 11:06:11 +01:00
parent ea51df3719
commit 62fe1f9e3a

View file

@ -484,7 +484,7 @@ class Obs:
return '{:.0f}({:2.0f})'.format(self.value, self.dvalue)
def __str__(self):
return 'Obs[' + str(self) + ']'
return 'Obs[' + self.__repr__() + ']'
# Overload comparisons
def __lt__(self, other):