def __str__(self):
        x = self
        ix = 0
        while isinstance(x, FORAValue) and x.implVal_.type != String.implVal_:
            ix = ix + 1
            x = String(x)
            if (50 > ix):
                print x.implVal_.type, String, x.implVal_.type != String.implVal_
            assert ix < 100, "can't convert " + repr(self) + " to a string"

        if isinstance(x, FORAValue):
            stringVal = x.implVal_.getPythonString()
            if stringVal is None:
                #it's an unloaded string
                x = str(x)
            else:
                x = stringVal
        elif not isinstance(x, str):
            return str(x)

        return x
dataset/ETHPy150Open ufora/ufora/ufora/FORA/python/ForaValue.py/FORAValue.__str__/swapped operands of `>`