def float_as_double(self, fobj):
    fnty = Type.function(self.double, [self.pyobj])
    fn = self._get_function(fnty, name='PyFloat_AsDouble')
    return self.builder.call(fn, [fobj])
def float_as_double(self, fobj):
    fnty = Type.function(self.double, [self.pyobj])
    fn = self._get_function(fnty, name='PyFloat_AsDouble')
    return self.builder.call(fn, [fobj])