def float_from_double(self, fval):
    fnty = Type.function(self.pyobj, [self.double])
    fn = self._get_function(fnty, name='PyFloat_FromDouble')
    return self.builder.call(fn, [fval])
def float_from_double(self, fval):
    fnty = Type.function(self.pyobj, [self.double])
    fn = self._get_function(fnty, name='PyFloat_FromDouble')
    return self.builder.call(fn, [fval])