'Returns a borrowed reference.'

def list_getitem(self, lst, idx):

    fnty = Type.function(self.pyobj, [self.pyobj, self.py_ssize_t])
    fn = self._get_function(fnty, name='PyList_GetItem')
    if isinstance(idx, int):
        idx = self.context.get_constant(types.intp, idx)
    return self.builder.call(fn, [lst, idx])
