def tuple_getitem(self, tup, idx):
    '\n        Borrow reference\n        '
    fnty = Type.function(self.pyobj, [self.pyobj, self.py_ssize_t])
    fn = self._get_function(fnty, name='PyTuple_GetItem')
    idx = self.context.get_constant(types.intp, idx)
    return self.builder.call(fn, [tup, idx])
Borrow reference
def tuple_getitem(self, tup, idx):
    '\n        \n        '
    fnty = Type.function(self.pyobj, [self.pyobj, self.py_ssize_t])
    fn = self._get_function(fnty, name='PyTuple_GetItem')
    idx = self.context.get_constant(types.intp, idx)
    return self.builder.call(fn, [tup, idx])