#NEWLINE# def repeat_tuple( t , n ) : #NEWLINE# #INDENT# 'Given the base type t, construct the n-tuple t*t*...*t' #NEWLINE# elt_types = tuple ( ( [ t ] * n ) ) #NEWLINE# tuple_t = _tuple_types . get ( elt_types ) #NEWLINE# if ( tuple_t is not None ) : #NEWLINE# #INDENT# return tuple_t #NEWLINE# #UNINDENT# tuple_t = TupleT ( elt_types ) #NEWLINE# _tuple_types [ elt_types ] = tuple_t #NEWLINE# return tuple_t