@lower_constant(types.Tuple)
@lower_constant(types.NamedTuple)
def unituple_constant(context, builder, ty, pyval):
 consts = [context.get_constant_generic(builder, ty.types[i], v) for (i, v) in enumerate(pyval)]
 return ir.Constant.literal_struct(consts)

@ lower_constant ( types . Tuple ) @ lower_constant ( types . NamedTuple ) def unituple_constant ( context , builder , ty , pyval ) : consts = [ context . get_constant_generic ( builder , ty . types [ i ] , v ) for ( i , v ) in enumerate ( pyval ) ] return ir . Constant . literal_struct ( consts )
create a homogenous tuple constant .