Home | History | Annotate | Download | only in Modules

Lines Matching defs:DICT

56 #define DICT        'd'

99 * batch_list/dict() pumps out before doing APPENDS/SETITEMS. Nothing will
1749 * empty dict, or dict-like object, for the SETITEMS to operate on.
1779 PyErr_SetString(PyExc_TypeError, "dict items "
1807 PyErr_SetString(PyExc_TypeError, "dict items "
1845 PyErr_SetString(PyExc_TypeError, "dict items "
1880 * support for dict subclasses. Like batch_dict(), we batch up chunks of
1883 * empty dict, or dict-like object, for the SETITEMS to operate on.
1951 /* Create an empty dict. */
1958 s[1] = DICT;
1965 /* Get dict size, and bow out early if empty. */
1977 /* Materialize the dict items. */
1979 /* We can take certain shortcuts if we know this is a dict and
1980 not a dict subclass. */
3789 PyObject *dict;
3791 if (!( dict=PyDict_New())) return -1;
3792 PDATA_PUSH(self->stack, dict, -1);
3812 PyObject *dict, *key, *value;
3818 if (!( dict = PyDict_New())) return -1;
3823 if (PyDict_SetItem(dict, key, value) < 0) {
3824 Py_DECREF(dict);
3829 PDATA_PUSH(self->stack, dict, -1);
4457 PyObject *value = 0, *key = 0, *dict = 0;
4463 dict=self->stack->data[x-1];
4468 if (PyObject_SetItem(dict, key, value) < 0) {
4533 * slot state dict too (a proto 2 addition).
4546 /* Set inst.__dict__ from the state dict (if any). */
4548 PyObject *dict;
4554 dict = PyObject_GetAttr(inst, __dict___str);
4555 if (dict == NULL)
4565 if (PyObject_SetItem(dict, d_key, d_value) < 0) {
4571 Py_DECREF(dict);
4574 /* Also set instance attributes from the slotstate dict (if any). */
4804 case DICT:
5221 case DICT: