Lines Matching defs:encoding
2312 encoding: str(c_default="NULL") = 'utf-8'
2313 The encoding with which to decode the bytes.
2321 Decode the bytes using the codec registered for encoding.
2325 bytes_decode_impl(PyBytesObject *self, const char *encoding,
2329 return PyUnicode_FromEncodedObject((PyObject*)self, encoding, errors);
2582 encoding: str = NULL
2588 bytes_new_impl(PyTypeObject *type, PyObject *x, const char *encoding,
2597 if (encoding != NULL || errors != NULL) {
2599 encoding != NULL ?
2600 "encoding without a string argument" :
2606 else if (encoding != NULL) {
2610 "encoding without a string argument");
2613 bytes = PyUnicode_AsEncodedString(x, encoding, errors);
2618 "string argument without an encoding" :
2642 "string argument without an encoding");
2924 bytes(string, encoding[, errors]) -> bytes\n\
2931 - a text string encoded using the specified encoding\n\