#NEWLINE# @ staticmethod #NEWLINE# def pad_tuple( tup , length , pad ) : #NEWLINE# #INDENT# assert ( len ( tup ) <= length ) #NEWLINE# result = list ( tup ) #NEWLINE# while ( len ( result ) < length ) : #NEWLINE# #INDENT# result . append ( pad ) #NEWLINE# #UNINDENT# return tuple ( result )