def dict_getitem_string(self, dic, name):
    'Lookup name inside dict\n\n        Returns a borrowed reference\n        '
    fnty = Type.function(self.pyobj, [self.pyobj, self.cstring])
    fn = self._get_function(fnty, name='PyDict_GetItemString')
    cstr = self.context.insert_const_string(self.module, name)
    return self.builder.call(fn, [dic, cstr])
Lookup name inside dict

Returns a borrowed reference
def dict_getitem_string(self, dic, name):
    'Lookup name inside dict\n\n        Returns a borrowed reference\n        '
    fnty = Type.function(self.pyobj, [self.pyobj, self.cstring])
    fn = self._get_function(fnty, name='PyDict_GetItemString')
    cstr = self.context.insert_const_string(self.module, name)
    return self.builder.call(fn, [dic, cstr])