def __repr__(self): cseg = self[0] hline = "{0}".format("-" * ((len(cseg) * 2) + 3)) cseg_str = utils.list_to_string(cseg) com_matrix = self[1:] com_matrix_str = [(str(cseg[i]) + " | " + \ utils.replace_list_to_plus_minus(line)) \ for (i, line) in enumerate(com_matrix)] half_matrix_1 = " | " + cseg_str + "\n" + hline + "\n" half_matrix_2 = "".join([x + "\n" for x in com_matrix_str]) return half_matrix_1 + half_matrix_2
def __repr__(self): return "\n".join([str(utils.replace_list_to_plus_minus(line)) for line in self])
def __lines(el, line, cseg): return str(cseg[el]) + " | " + str(utils.replace_list_to_plus_minus(line))