Lines Matching defs:DICT
56 #define DICT 'd'
99 * batch_list/dict() pumps out before doing APPENDS/SETITEMS. Nothing will
1780 * empty dict, or dict-like object, for the SETITEMS to operate on.
1810 PyErr_SetString(PyExc_TypeError, "dict items "
1838 PyErr_SetString(PyExc_TypeError, "dict items "
1876 PyErr_SetString(PyExc_TypeError, "dict items "
1911 * support for dict subclasses. Like batch_dict(), we batch up chunks of
1914 * empty dict, or dict-like object, for the SETITEMS to operate on.
1982 /* Create an empty dict. */
1989 s[1] = DICT;
1996 /* Get dict size, and bow out early if empty. */
2008 /* Materialize the dict items. */
2010 /* We can take certain shortcuts if we know this is a dict and
2011 not a dict subclass. */
3824 PyObject *dict;
3826 if (!( dict=PyDict_New())) return -1;
3827 PDATA_PUSH(self->stack, dict, -1);
3847 PyObject *dict, *key, *value;
3853 if (!( dict = PyDict_New())) return -1;
3858 if (PyDict_SetItem(dict, key, value) < 0) {
3859 Py_DECREF(dict);
3864 PDATA_PUSH(self->stack, dict, -1);
4492 PyObject *value = 0, *key = 0, *dict = 0;
4498 dict=self->stack->data[x-1];
4503 if (PyObject_SetItem(dict, key, value) < 0) {
4568 * slot state dict too (a proto 2 addition).
4581 /* Set inst.__dict__ from the state dict (if any). */
4583 PyObject *dict;
4589 dict = PyObject_GetAttr(inst, __dict___str);
4590 if (dict == NULL)
4600 if (PyObject_SetItem(dict, d_key, d_value) < 0) {
4606 Py_DECREF(dict);
4609 /* Also set instance attributes from the slotstate dict (if any). */
4839 case DICT:
5256 case DICT: