Lines Matching defs:errors
1062 const char *errors,
1135 if (!errors || strcmp(errors, "strict") == 0) {
1141 if (strcmp(errors, "replace") == 0) {
1143 } else if (strcmp(errors, "ignore") == 0)
1149 errors);
1176 const char *errors,
1181 PyObject *result = _PyBytes_DecodeEscape(s, len, errors,
2314 errors: str(c_default="NULL") = 'strict'
2315 The error handling scheme to use for the handling of decoding errors.
2316 The default is 'strict' meaning that decoding errors raise a
2326 const char *errors)
2329 return PyUnicode_FromEncodedObject((PyObject*)self, encoding, errors);
2583 errors: str = NULL
2589 const char *errors)
2597 if (encoding != NULL || errors != NULL) {
2601 "errors without a string argument");
2613 bytes = PyUnicode_AsEncodedString(x, encoding, errors);
2615 else if (errors != NULL) {
2619 "errors without a string argument");
2924 bytes(string, encoding[, errors]) -> bytes\n\