Skip to content

Commit

Permalink
bpo-44522: Fix inaccurate information in open() function (pythonGH-27650
Browse files Browse the repository at this point in the history
)

- Use "Low surrogate code units" instead of "Unicode Private Use Area"
  • Loading branch information
dukecat0 committed Aug 9, 2021
1 parent 41bb564 commit b05e9b6
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions Doc/library/functions.rst
Original file line number Diff line number Diff line change
Expand Up @@ -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.
Expand Down

0 comments on commit b05e9b6

Please sign in to comment.