Lines Matching defs:DICT
56 #define DICT 'd'
99 * batch_list/dict() pumps out before doing APPENDS/SETITEMS. Nothing will
1778 * empty dict, or dict-like object, for the SETITEMS to operate on.
1808 PyErr_SetString(PyExc_TypeError, "dict items "
1836 PyErr_SetString(PyExc_TypeError, "dict items "
1874 dict items "
1909 * support for dict subclasses. Like batch_dict(), we batch up chunks of
1912 * empty dict, or dict-like object, for the SETITEMS to operate on.
1980 /* Create an empty dict. */
1987 s[1] = DICT;
1994 /* Get dict size, and bow out early if empty. */
2006 /* Materialize the dict items. */
2008 /* We can take certain shortcuts if we know this is a dict and
2009 not a dict subclass. */
3831 PyObject *dict;
3833 if (!( dict=PyDict_New())) return -1;
3834 PDATA_PUSH(self->stack, dict, -1);
3854 PyObject *dict, *key, *value;
3860 if (!( dict = PyDict_New())) return -1;
3865 if (PyDict_SetItem(dict, key, value) < 0) {
3866 Py_DECREF(dict);
3871 PDATA_PUSH(self->stack, dict, -1);
4511 PyObject *value = 0, *key = 0, *dict = 0;
4525 dict=self->stack->data[x-1];
4530 if (PyObject_SetItem(dict, key, value) < 0) {
4598 * slot state dict too (a proto 2 addition).
4611 /* Set inst.__dict__ from the state dict (if any). */
4613 PyObject *dict;
4619 dict = PyObject_GetAttr(inst, __dict___str);
4620 if (dict == NULL)
4630 if (PyObject_SetItem(dict, d_key, d_value) < 0) {
4636 Py_DECREF(dict);
4639 /* Also set instance attributes from the slotstate dict (if any). */
4869 case DICT:
5286 case DICT: