def err_restore(self, ty, val, tb):
    fnty = Type.function(Type.void(), ([self.pyobj] * 3))
    fn = self._get_function(fnty, name='PyErr_Restore')
    return self.builder.call(fn, (ty, val, tb))
def err_restore(self, ty, val, tb):
    fnty = Type.function(Type.void(), ([self.pyobj] * 3))
    fn = self._get_function(fnty, name='PyErr_Restore')
    return self.builder.call(fn, (ty, val, tb))