def tuple_pack(self, items):
    fnty = Type.function(self.pyobj, [self.py_ssize_t], var_arg=True)
    fn = self._get_function(fnty, name='PyTuple_Pack')
    n = self.context.get_constant(types.intp, len(items))
    args = [n]
    args.extend(items)
    return self.builder.call(fn, args)
def tuple_pack(self, items):
    fnty = Type.function(self.pyobj, [self.py_ssize_t], var_arg=True)
    fn = self._get_function(fnty, name='PyTuple_Pack')
    n = self.context.get_constant(types.intp, len(items))
    args = [n]
    args.extend(items)
    return self.builder.call(fn, args)