def complex_real_as_double(self, cobj):
    fnty = Type.function(Type.double(), [self.pyobj])
    fn = self._get_function(fnty, name='PyComplex_RealAsDouble')
    return self.builder.call(fn, [cobj])
def complex_real_as_double(self, cobj):
    fnty = Type.function(Type.double(), [self.pyobj])
    fn = self._get_function(fnty, name='PyComplex_RealAsDouble')
    return self.builder.call(fn, [cobj])