(value)
Convert a version string to a floating point number.
Convert a version string to a floating point number.
Convert a version string to a floating point number .
def parse_version(value):
    """Convert a version string to a floating point number."""
    for token in value.split():
        try:
            return decimal.Decimal(token)
        except ValueError:
            pass
    msg = "Failed to convert version string to number! (%r)"
    raise ValueError(msg % value)
def parse_version ( value ) : for token in value . split ( ) : try : return decimal . Decimal ( token ) except ValueError : pass msg = "Failed to convert version string to number! (%r)" raise ValueError ( msg % value )