def split_version(version):
    find_digits = re.compile('([0-9]+)(.*)').match
    l = []
    for part in version.split('.'):
        try:
            l.append( int(part) )
        except __HOLE__:
            match = find_digits(part)
            if match:
                l.append( int(match.group(1)) )
                l.append( match.group(2) )
    return tuple(l)
dataset/ETHPy150Open cloudera/hue/desktop/core/ext-py/lxml-3.3.6/versioninfo.py/split_version