def string_as_string(self, strobj):
    fnty = Type.function(self.cstring, [self.pyobj])
    fname = 'PyUnicode_AsUTF8'
    fn = self._get_function(fnty, name=fname)
    return self.builder.call(fn, [strobj])
def string_as_string(self, strobj):
    fnty = Type.function(self.cstring, [self.pyobj])
    fname = 'PyUnicode_AsUTF8'
    fn = self._get_function(fnty, name=fname)
    return self.builder.call(fn, [strobj])