def list_getitem(self, lst, idx):
    '\n        Returns a borrowed reference.\n        '
    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])
Returns a borrowed reference.
def list_getitem(self, lst, idx):
    '\n        \n        '
    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])