Lines Matching defs:encoding
746 encoding: str = NULL
753 const char *encoding, const char *errors)
768 if (encoding != NULL || errors != NULL) {
770 encoding != NULL ?
771 "encoding without a string argument" :
781 if (encoding == NULL) {
783 "string argument without an encoding");
786 encoded = PyUnicode_AsEncodedString(arg, encoding, errors);
798 /* If it's not unicode, there can't be encoding or errors */
799 if (encoding != NULL || errors != NULL) {
801 encoding != NULL ?
802 "encoding without a string argument" :
1961 encoding: str(c_default="NULL") = 'utf-8'
1962 The encoding with which to decode the bytearray.
1970 Decode the bytearray using the codec registered for encoding.
1974 bytearray_decode_impl(PyByteArrayObject *self, const char *encoding,
1978 if (encoding == NULL)
1979 encoding = PyUnicode_GetDefaultEncoding();
1980 return PyUnicode_FromEncodedObject((PyObject*)self, encoding, errors);
2276 bytearray(string, encoding[, errors]) -> bytearray\n\
2283 - a text string encoded using the specified encoding\n\