Lines Matching defs:errors
131 {"errors", (getter)textiobase_errors_get, NULL, textiobase_errors_doc},
192 PyObject *errors;
204 PyObject *errors = NULL;
205 char *kwlist[] = {"decoder", "translate", "errors", NULL};
208 kwlist, &decoder, &translate, &errors))
214 if (errors == NULL) {
215 self->errors = PyUnicode_FromString("strict");
216 if (self->errors == NULL)
220 Py_INCREF(errors);
221 self->errors = errors;
235 Py_CLEAR(self->errors);
631 "errors determines the strictness of encoding and decoding (see the\n"
669 PyObject *errors;
686 buffered. This is necessary so that encoding errors are immediately
719 PyBytes_AS_STRING(self->errors));
727 PyBytes_AS_STRING(self->errors), 1);
735 PyBytes_AS_STRING(self->errors), -1);
751 PyBytes_AS_STRING(self->errors), 0);
759 PyBytes_AS_STRING(self->errors), 1);
767 PyBytes_AS_STRING(self->errors), -1);
783 PyBytes_AS_STRING(self->errors), 0);
791 PyBytes_AS_STRING(self->errors));
799 PyBytes_AS_STRING(self->errors));
826 char *kwlist[] = {"buffer", "encoding", "errors",
831 char *errors = NULL;
841 kwlist, &buffer, &encoding, &errors,
862 Py_CLEAR(self->errors);
912 if (errors == NULL)
913 errors = "strict";
914 self->errors = PyBytes_FromString(errors);
915 if (self->errors == NULL)
948 encoding, errors);
974 encoding, errors);
1079 Py_CLEAR(self->errors);
1107 Py_VISIT(self->errors);
2563 Py_INCREF(self->errors);
2564 return self->errors;
2624 {"errors", (getter)textiowrapper_errors_get, NULL, NULL},