def ver_to_tuple ( value ) : return tuple ( int ( _f ) for _f in re . split ( r'\D+' , value ) if _f )
python split string to integer tuple
Convert version like string to a tuple of integers .
def ver_to_tuple(value):
    """
    Convert version like string to a tuple of integers.
    """
    return tuple(int(_f) for _f in re.split(r'\D+', value) if _f)