(self, value)
return int(self), v_num
Match the input with the version in preparation for comparing.
Match the input with the version in preparation for comparing.
Match the input with the version in preparation for comparing .
def _compare(self, value):
        """Match the input with the version in preparation for comparing."""
        value = str(value)
        try:
            v_num = int(value)
        except ValueError:
            try:
                v_num = float(value)
            except ValueError:
                return str(self), value
            return float(self), v_num
        return int(self), v_num
def _compare ( self , value ) : value = str ( value ) try : v_num = int ( value ) except ValueError : try : v_num = float ( value ) except ValueError : return str ( self ) , value return float ( self ) , v_num return int ( self ) , v_num