@classdef.method("<=>")
    def method_comparator(self, space, w_other):
        if space.is_kind_of(w_other, space.w_numeric):
            other = space.float_w(w_other)
            if self.floatvalue < other:
                return space.newint(-1)
            elif self.floatvalue == other:
                return space.newint(0)
            elif self.floatvalue > other:
                return space.newint(1)
            return space.newint(1)
        else:
            return space.w_nil
dataset/ETHPy150Open topazproject/topaz/topaz/objects/floatobject.py/W_FloatObject.method_comparator/original