def CodeRanges(code_list):
 re_list = [CodeRange(code_list[i], code_list[(i + 1)]) for i in range(0, len(code_list), 2)]
 return Alt(*re_list)

def CodeRanges ( code_list ) : re_list = [ CodeRange ( code_list [ i ] , code_list [ ( i + 1 ) ] ) for i in range ( 0 , len ( code_list ) , 2 ) ] return Alt ( * re_list )
given a list of codes as returned by chars_to_ranges .