Lines Matching defs:value

27 /* For best performance, chose a value so that 80-90% of all nodes
343 /* If attrib was found in kwds, copy its value and remove it from
864 PyObject *key, *value;
867 while (PyDict_Next(object, &pos, &key, &value)) {
868 if (!PyUnicode_CheckExact(key) || !PyUnicode_CheckExact(value)) {
1387 PyObject *value = PyDict_GetItemWithError(attrib, key);
1388 Py_XINCREF(value);
1390 if (value != NULL || PyErr_Occurred()) {
1391 return value;
1648 value: object
1655 PyObject *value)
1669 if (PyDict_SetItem(attrib, key, value) < 0)
1763 element_ass_subscr(PyObject* self_, PyObject* item, PyObject* value)
1775 return element_setitem(self_, i, value);
1795 if (value == NULL) {
1862 seq = PySequence_Fast(value, "");
1866 "expected sequence, not \"%.200s\"", Py_TYPE(value)->tp_name
1995 element_tag_setter(ElementObject *self, PyObject *value, void *closure)
1997 _VALIDATE_ATTR_VALUE(value);
1998 Py_INCREF(value);
1999 Py_SETREF(self->tag, value);
2004 element_text_setter(ElementObject *self, PyObject *value, void *closure)
2006 _VALIDATE_ATTR_VALUE(value);
2007 Py_INCREF(value);
2008 _set_joined_ptr(&self->text, value);
2013 element_tail_setter(ElementObject *self, PyObject *value, void *closure)
2015 _VALIDATE_ATTR_VALUE(value);
2016 Py_INCREF(value);
2017 _set_joined_ptr(&self->tail, value);
2022 element_attrib_setter(ElementObject *self, PyObject *value, void *closure)
2024 _VALIDATE_ATTR_VALUE(value);
2025 if (!PyDict_Check(value)) {
2028 Py_TYPE(value)->tp_name);
2035 Py_INCREF(value);
2036 Py_XSETREF(self->extra->attrib, value);
3079 PyObject* value;
3086 value = PyDict_GetItemWithError(self->names, key);
3088 if (value) {
3089 Py_INCREF(value);
3122 value = PyUnicode_DecodeUTF8(p, size, "strict");
3124 if (!value) {
3130 if (PyDict_SetItem(self->names, key, value) < 0) {
3132 Py_DECREF(value);
3138 return value;
3200 PyObject* value;
3213 value = PyDict_GetItemWithError(self->entity, key);
3215 if (value) {
3218 (TreeBuilderObject*) self->target, value
3221 res = PyObject_CallOneArg(self->handle_data, value);
3266 PyObject* value = PyUnicode_DecodeUTF8(attrib_in[1], strlen(attrib_in[1]), "strict");
3267 if (!key || !value) {
3268 Py_XDECREF(value);
3274 ok = PyDict_SetItem(attrib, key, value);
3275 Py_DECREF(value);
3612 ignore_attribute_error(PyObject *value)
3614 if (value == NULL) {