def object_istrue(self, obj):
    fnty = Type.function(Type.int(), [self.pyobj])
    fn = self._get_function(fnty, name='PyObject_IsTrue')
    return self.builder.call(fn, [obj])
def object_istrue(self, obj):
    fnty = Type.function(Type.int(), [self.pyobj])
    fn = self._get_function(fnty, name='PyObject_IsTrue')
    return self.builder.call(fn, [obj])