def rtype_newlist(hop, v_sizehint=None): from rpython.rtyper.lltypesystem.rlist import newlist nb_args = hop.nb_args r_list = hop.r_result r_listitem = r_list.item_repr items_v = [hop.inputarg(r_listitem, arg=i) for i in range(nb_args)] return newlist(hop.llops, r_list, items_v, v_sizehint=v_sizehint)