Lines Matching refs:dict
1089 * Creates the dict from inline attributes if necessary.
1107 PyObject *dict = _PyObject_MakeDictFromInstanceAttributes(obj, *values_ptr);
1108 if (dict == NULL) {
1113 *dict_ptr = dict;
1197 PyObject *dict;
1198 if (dictptr != NULL && (dict = *dictptr) != NULL) {
1199 Py_INCREF(dict);
1200 PyObject *attr = PyDict_GetItemWithError(dict, name);
1203 Py_DECREF(dict);
1207 Py_DECREF(dict);
1244 PyObject *dict, int suppress)
1286 if (dict == NULL) {
1301 *dictptr = dict = _PyObject_MakeDictFromInstanceAttributes(obj, *values_ptr);
1302 if (dict == NULL) {
1312 dict = *dictptr;
1316 if (dict != NULL) {
1317 Py_INCREF(dict);
1318 res = PyDict_GetItemWithError(dict, name);
1321 Py_DECREF(dict);
1325 Py_DECREF(dict);
1373 PyObject *value, PyObject *dict)
1403 if (dict == NULL) {
1428 Py_INCREF(dict);
1430 res = PyDict_DelItem(dict, name);
1432 res = PyDict_SetItem(dict, name, value);
1433 Py_DECREF(dict);
1468 /* Was unable to convert to dict */
2161 PyObject *dict;
2165 dict = PyThreadState_GetDict();
2168 if (dict == NULL)
2170 list = PyDict_GetItemWithError(dict, &_Py_ID(Py_Repr));
2178 if (PyDict_SetItem(dict, &_Py_ID(Py_Repr), list) < 0)
2195 PyObject *dict;
2202 dict = PyThreadState_GetDict();
2203 if (dict == NULL)
2206 list = PyDict_GetItemWithError(dict, &_Py_ID(Py_Repr));