def err_fetch(self, pty, pval, ptb):
    fnty = Type.function(Type.void(), ([self.pyobjptr] * 3))
    fn = self._get_function(fnty, name='PyErr_Fetch')
    return self.builder.call(fn, (pty, pval, ptb))
def err_fetch(self, pty, pval, ptb):
    fnty = Type.function(Type.void(), ([self.pyobjptr] * 3))
    fn = self._get_function(fnty, name='PyErr_Fetch')
    return self.builder.call(fn, (pty, pval, ptb))