Lines Matching refs:dict
49 /* the dict is created on the fly in PyObject_GenericSetAttr */
50 self->dict = NULL;
85 Py_CLEAR(self->dict);
110 Py_VISIT(self->dict);
147 if (self->args && self->dict)
148 return PyTuple_Pack(3, Py_TYPE(self), self->args, self->dict);
476 offsetof(PyBaseExceptionObject, dict), /* tp_dictoffset */
499 0, 0, 0, offsetof(PyBaseExceptionObject, dict), \
514 0, 0, 0, offsetof(Py ## EXCSTORE ## Object, dict), \
532 0, 0, 0, offsetof(Py ## EXCSTORE ## Object, dict), \
1576 PyObject *dict = ((PyBaseExceptionObject *)self)->dict;
1578 dict = dict ? PyDict_Copy(dict) : PyDict_New();
1579 if (dict == NULL)
1581 if (self->name && PyDict_SetItem(dict, &_Py_ID(name), self->name) < 0) {
1582 Py_DECREF(dict);
1585 if (self->path && PyDict_SetItem(dict, &_Py_ID(path), self->path) < 0) {
1586 Py_DECREF(dict);
1589 return dict;
1591 else if (dict) {
1592 Py_INCREF(dict);
1593 return dict;
1859 self->dict = NULL;
2045 if (self->dict)
2046 res = PyTuple_Pack(3, Py_TYPE(self), args, self->dict);
2962 0, &_PyExc_UnicodeError, 0, 0, 0, offsetof(PyUnicodeErrorObject, dict),
3069 0, &_PyExc_UnicodeError, 0, 0, 0, offsetof(PyUnicodeErrorObject, dict),
3166 0, &_PyExc_UnicodeError, 0, 0, 0, offsetof(PyUnicodeErrorObject, dict),
3263 state->memerrors_freelist = (PyBaseExceptionObject *) self->dict;
3265 self->dict = NULL;
3290 self->dict = (PyObject *) state->memerrors_freelist;
3321 state->memerrors_freelist = (PyBaseExceptionObject *)state->memerrors_freelist->dict;
3336 0, 0, 0, offsetof(PyBaseExceptionObject, dict),
3765 * non-empty instance dict.
3832 /* Ensure the instance dict is also empty */