Lines Matching refs:key
56 add_to_attrs(PyObject *attrs, PyObject *key, PyObject *attr, bool concat)
60 PyObject *av = PyDict_GetItem(attrs, key);
63 return (PyDict_SetItem(attrs, key, attr));
104 ret = PyDict_SetItem(attrs, key, av);
117 ret = PyDict_SetItem(attrs, key, list);
170 PyObject *key = NULL;
173 KEY, /* key */
189 Py_XDECREF(key);\
303 malformed("whitespace in key");
329 key = PyUnicode_FromStringAndSize(
332 key = PyString_FromStringAndSize(
335 if (key == NULL) {
342 invalid("invalid key: 'data'");
354 * Pool attribute key to reduce memory usage and
358 PyUnicode_InternInPlace(&key);
360 PyString_InternInPlace(&key);
364 malformed("impossible: missing key");
388 malformed("quote in key");
510 if (add_to_attrs(attrs, key, attr,
545 if (add_to_attrs(attrs, key, attr,
557 malformed("missing key");
602 if (add_to_attrs(attrs, key, attr, false) == -1) {
621 Py_XDECREF(key);