Lines Matching defs:dict
130 dict: object(c_default="NULL") = {}
134 structseq_new_impl(PyTypeObject *type, PyObject *arg, PyObject *dict)
160 if (dict && !PyDict_Check(dict)) {
162 "%.500s() takes a dict as second arg, if any",
208 if (dict == NULL) {
212 ob = _PyDict_GetItemStringWithError(dict,
320 PyObject* dict = NULL;
337 dict = PyDict_New();
338 if (!dict)
343 if (PyDict_SetItemString(dict, n, self->ob_item[i]) < 0)
347 result = Py_BuildValue("(O(OO))", Py_TYPE(self), tup, dict);
350 Py_DECREF(dict);
356 Py_XDECREF(dict);
379 initialize_structseq_dict(PyStructSequence_Desc *desc, PyObject* dict,
389 if (PyDict_SetItemString(dict, key, v) < 0) { \
423 if (PyDict_SetItemString(dict, match_args_key, keys) < 0) {