def list_pack(self, items):
    n = len(items)
    seq = self.list_new(self.context.get_constant(types.intp, n))
    with self.if_object_ok(seq):
        for i in range(n):
            idx = self.context.get_constant(types.intp, i)
            self.incref(items[i])
            self.list_setitem(seq, idx, items[i])
    return seq
def list_pack(self, items):
    n = len(items)
    seq = self.list_new(self.context.get_constant(types.intp, n))
    with self.if_object_ok(seq):
        for i in range(n):
            idx = self.context.get_constant(types.intp, i)
            self.incref(items[i])
            self.list_setitem(seq, idx, items[i])
    return seq