Lines Matching refs:dict
1127 PyErr_NewException(const char *name, PyObject *base, PyObject *dict)
1144 if (dict == NULL) {
1145 dict = mydict = PyDict_New();
1146 if (dict == NULL)
1150 int r = PyDict_Contains(dict, &_Py_ID(__module__));
1159 if (PyDict_SetItem(dict, &_Py_ID(__module__), modulename) != 0)
1173 dot+1, bases, dict);
1185 PyObject *base, PyObject *dict)
1189 PyObject *mydict = NULL; /* points to the dict only if we create it */
1192 if (dict == NULL) {
1193 dict = mydict = PyDict_New();
1194 if (dict == NULL) {
1203 result = PyDict_SetItemString(dict, "__doc__", docobj);
1209 ret = PyErr_NewException(name, base, dict);