Lines Matching defs:encoding
142 "TextIOWrapper(buffer, encoding=None, errors=None, newline=None,\n"
148 "encoding gives the name of the encoding that the stream will be\n"
151 "errors determines the strictness of encoding and decoding (see\n"
177 const char *encoding, PyObject *errors,
185 static const char * const _keywords[] = {"buffer", "encoding", "errors", "newline", "line_buffering", "write_through", NULL};
192 const char *encoding = NULL;
208 encoding = NULL;
212 encoding = PyUnicode_AsUTF8AndSize(fastargs[1], &encoding_length);
213 if (encoding == NULL) {
216 if (strlen(encoding) != (size_t)encoding_length) {
222 _PyArg_BadArgument("TextIOWrapper", "argument 'encoding'", "str or None", fastargs[1]);
272 return_value = _io_TextIOWrapper___init___impl((textio *)self, buffer, encoding, errors, newline, line_buffering, write_through);
279 "reconfigure($self, /, *, encoding=None, errors=None, newline=None,\n"
291 _io_TextIOWrapper_reconfigure_impl(textio *self, PyObject *encoding,
300 static const char * const _keywords[] = {"encoding", "errors", "newline", "line_buffering", "write_through", NULL};
304 PyObject *encoding = Py_None;
318 encoding = args[0];
343 return_value = _io_TextIOWrapper_reconfigure_impl(self, encoding, errors, newline_obj, line_buffering_obj, write_through_obj);