def parse_info_value(value):
    """

    :param value:
    :return:

    """
    try:
        if '.' in value:
            return float(value)
        else:
            return int(value)
    except ValueError:
        if ',' in value or '=' in value:
            retval = {}
            for row in value.split(','):
                key, val = row.rsplit('=', 1)
                retval[key] = parse_info_value(val)
            return retval
        return value
def parse_info_value ( value ) : try : if '.' in value : return float ( value ) else : return int ( value ) except ValueError : if ',' in value or '=' in value : retval = { } for row in value . split ( ',' ) : key , val = row . rsplit ( '=' , 1 ) retval [ key ] = parse_info_value ( val ) return retval return value
:param value:
    :return: