def object_getattr_string(self, obj, attr):
    cstr = self.context.insert_const_string(self.module, attr)
    fnty = Type.function(self.pyobj, [self.pyobj, self.cstring])
    fn = self._get_function(fnty, name='PyObject_GetAttrString')
    return self.builder.call(fn, [obj, cstr])
def object_getattr_string(self, obj, attr):
    cstr = self.context.insert_const_string(self.module, attr)
    fnty = Type.function(self.pyobj, [self.pyobj, self.cstring])
    fn = self._get_function(fnty, name='PyObject_GetAttrString')
    return self.builder.call(fn, [obj, cstr])