Lines Matching defs:errors
7 const char *encoding, const char *errors);
13 static const char * const _keywords[] = {"source", "encoding", "errors", NULL};
21 const char *errors = NULL;
55 _PyArg_BadArgument("bytearray", "argument 'errors'", "str", fastargs[2]);
59 errors = PyUnicode_AsUTF8AndSize(fastargs[2], &errors_length);
60 if (errors == NULL) {
63 if (strlen(errors) != (size_t)errors_length) {
68 return_value = bytearray___init___impl((PyByteArrayObject *)self, arg, encoding, errors);
821 "decode($self, /, encoding=\'utf-8\', errors=\'strict\')\n"
828 " errors\n"
829 " The error handling scheme to use for the handling of decoding errors.\n"
830 " The default is \'strict\' meaning that decoding errors raise a\n"
840 const char *errors);
846 static const char * const _keywords[] = {"encoding", "errors", NULL};
851 const char *errors = NULL;
879 _PyArg_BadArgument("decode", "argument 'errors'", "str", args[1]);
883 errors = PyUnicode_AsUTF8AndSize(args[1], &errors_length);
884 if (errors == NULL) {
887 if (strlen(errors) != (size_t)errors_length) {
892 return_value = bytearray_decode_impl(self, encoding, errors);