]> git.ipfire.org Git - thirdparty/Python/cpython.git/commitdiff
bpo-44522: Fix inaccurate information in open() function (GH-27650)
authormeowmeowmeowcat <meowmeowcat1211@gmail.com>
Mon, 9 Aug 2021 14:14:54 +0000 (22:14 +0800)
committerGitHub <noreply@github.com>
Mon, 9 Aug 2021 14:14:54 +0000 (16:14 +0200)
- Use "Low surrogate code units" instead of "Unicode Private Use Area"

Doc/library/functions.rst

index f99ea889ffe1efc913c89676ac728c20ef0155e9..652e30c6088ad98b727cbc5cb2e8d68b5fdfd488 100644 (file)
@@ -1208,9 +1208,9 @@ are always available.  They are listed here in alphabetical order.
    * ``'replace'`` causes a replacement marker (such as ``'?'``) to be inserted
      where there is malformed data.
 
-   * ``'surrogateescape'`` will represent any incorrect bytes as code
-     points in the Unicode Private Use Area ranging from U+DC80 to
-     U+DCFF.  These private code points will then be turned back into
+   * ``'surrogateescape'`` will represent any incorrect bytes as low
+     surrogate code units ranging from U+DC80 to U+DCFF.
+     These surrogate code units will then be turned back into
      the same bytes when the ``surrogateescape`` error handler is used
      when writing data.  This is useful for processing files in an
      unknown encoding.