mirror of
https://github.com/python/cpython.git
synced 2025-11-02 03:01:58 +00:00
Describe 'surrogateescape' in the documentation.
Also, improve some docstring descriptions of the 'errors' parameter. Closes #14015.
This commit is contained in:
parent
893f2ffc7c
commit
c7b6c50f29
5 changed files with 41 additions and 15 deletions
|
|
@ -642,8 +642,9 @@ PyDoc_STRVAR(textiowrapper_doc,
|
|||
"encoding gives the name of the encoding that the stream will be\n"
|
||||
"decoded or encoded with. It defaults to locale.getpreferredencoding(False).\n"
|
||||
"\n"
|
||||
"errors determines the strictness of encoding and decoding (see the\n"
|
||||
"codecs.register) and defaults to \"strict\".\n"
|
||||
"errors determines the strictness of encoding and decoding (see\n"
|
||||
"help(codecs.Codec) or the documentation for codecs.register) and\n"
|
||||
"defaults to \"strict\".\n"
|
||||
"\n"
|
||||
"newline controls how line endings are handled. It can be None, '',\n"
|
||||
"'\\n', '\\r', and '\\r\\n'. It works as follows:\n"
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue