@box(types.Tuple)
@box(types.UniTuple)
def box_tuple(typ, val, c):
 tuple_val = c.pyapi.tuple_new(typ.count)
 for (i, dtype) in enumerate(typ):
  item = c.builder.extract_value(val, i)
  obj = c.box(dtype, item)
  c.pyapi.tuple_setitem(tuple_val, i, obj)
 return tuple_val

@ box ( types . Tuple ) @ box ( types . UniTuple ) def box_tuple ( typ , val , c ) : tuple_val = c . pyapi . tuple_new ( typ . count ) for ( i , dtype ) in enumerate ( typ ) : item = c . builder . extract_value ( val , i ) obj = c . box ( dtype , item ) c . pyapi . tuple_setitem ( tuple_val , i , obj ) return tuple_val
convert native array or structure *val* to a tuple object .