Lines Matching defs:dict

360     PyObject *c_const_cache;     /* Python dict holding all constants,
606 PyObject *dict = PyDict_New();
607 if (!dict) return NULL;
613 Py_DECREF(dict);
617 if (PyDict_SetItem(dict, k, v) < 0) {
619 Py_DECREF(dict);
624 return dict;
627 /* Return new dict containing names from src that match scope(s).
630 either scope_type or flag is set, insert it into the new dict. The
1293 compiler_add_o(PyObject *dict, PyObject *o)
1298 v = PyDict_GetItemWithError(dict, o);
1303 arg = PyDict_GET_SIZE(dict);
1308 if (PyDict_SetItem(dict, o, v) < 0) {
1452 compiler_addop_o(struct compiler *c, int opcode, PyObject *dict,
1455 Py_ssize_t arg = compiler_add_o(dict, o);
1462 compiler_addop_name(struct compiler *c, int opcode, PyObject *dict,
1470 arg = compiler_add_o(dict, mangled);
2247 compiler_lookup_arg(PyObject *dict, PyObject *name)
2250 v = PyDict_GetItemWithError(dict, name);
2354 /* Push a dict of keyword-only default values.
2356 Return 0 on error, -1 if no dict pushed, 1 if a dict is pushed.
4254 PyObject *dict = c->u->u_names;
4273 dict = c->u->u_freevars;
4277 dict = c->u->u_cellvars;
4334 arg = compiler_add_o(dict, mangled);
5158 /* Has a new dict been pushed */
6730 // If we have a starred name, bind a dict of remaining items to it (this may
6733 // rest = dict(TOS1)
7823 dict_keys_inorder(PyObject *dict, Py_ssize_t offset)
7826 Py_ssize_t i, pos = 0, size = PyDict_GET_SIZE(dict);
7831 while (PyDict_Next(dict, &pos, &k, &v)) {
7842 consts_dict_keys_inorder(PyObject *dict)
7845 Py_ssize_t i, pos = 0, size = PyDict_GET_SIZE(dict);
7850 while (PyDict_Next(dict, &pos, &k, &v)) {