Lines Matching defs:dict

130       batch_list/dict() pumps out before doing APPENDS/SETITEMS.  Nothing will
250 "copyreg.dispatch_table should be a dict, not %.200s",
260 "copyreg._extension_registry should be a dict, "
270 "copyreg._inverted_registry should be a dict, "
279 "copyreg._extension_cache should be a dict, "
295 "_compat_pickle.NAME_MAPPING should be a dict, not %.200s",
305 "_compat_pickle.IMPORT_MAPPING should be a dict, "
316 "_compat_pickle.REVERSE_NAME_MAPPING should be a dict, "
326 "_compat_pickle.REVERSE_IMPORT_MAPPING should be a dict, "
672 /* The unpickler memo is just an array of PyObject *s. Using a dict
1986 memoization disabled). If the nesting of a list or dict object exceed
1988 reference to the seen list or dict objects and check whether these objects
3110 * empty dict, or dict-like object, for the SETITEMS to operate on.
3141 PyErr_SetString(PyExc_TypeError, "dict items "
3169 PyErr_SetString(PyExc_TypeError, "dict items "
3207 PyErr_SetString(PyExc_TypeError, "dict items "
3241 * support for dict subclasses. Like batch_dict(), we batch up chunks of
3244 * empty dict, or dict-like object, for the SETITEMS to operate on.
3331 /* Create an empty dict. */
3349 /* Save the dict items. */
3351 /* We can take certain shortcuts if we know this is a dict and
3352 not a dict subclass. */
4072 "be a dict, not %.200s", Py_TYPE(kwargs)->tp_name);
5020 "or dict, not %.200s", Py_TYPE(obj)->tp_name);
5723 PyObject *dict;
5725 if ((dict = PyDict_New()) == NULL)
5727 PDATA_PUSH(self->stack, dict, -1);
5761 PyObject *dict, *key, *value;
5768 if ((dict = PyDict_New()) == NULL)
5774 Py_DECREF(dict);
5781 if (PyDict_SetItem(dict, key, value) < 0) {
5782 Py_DECREF(dict);
5787 PDATA_PUSH(self->stack, dict, -1);
5970 newobj_unpickling_error("%s kwargs argument must be a dict, not %.200s",
6537 PyObject *dict;
6554 /* Here, dict does not actually need to be a PyDict; it could be anything
6556 dict = self->stack->data[x - 1];
6561 if (PyObject_SetItem(dict, key, value) < 0) {
6676 * slot state dict too (a proto 2 addition).
6690 /* Set inst.__dict__ from the state dict (if any). */
6692 PyObject *dict;
6701 dict = PyObject_GetAttr(inst, &_Py_ID(__dict__));
6702 if (dict == NULL)
6712 if (PyObject_SetItem(dict, d_key, d_value) < 0) {
6718 Py_DECREF(dict);
6721 /* Also set instance attributes from the slotstate dict (if any). */
7533 "or dict, not %.200s", Py_TYPE(obj)->tp_name);