def bool_from_long(self, ival):
    fnty = Type.function(self.pyobj, [self.long])
    fn = self._get_function(fnty, name='PyBool_FromLong')
    return self.builder.call(fn, [ival])
def bool_from_long(self, ival):
    fnty = Type.function(self.pyobj, [self.long])
    fn = self._get_function(fnty, name='PyBool_FromLong')
    return self.builder.call(fn, [ival])