[issue44522] [doc] open() function errors='surrogateescape' has inaccurate information

2021-06-28 Thread Bupjae Lee


New submission from Bupjae Lee :

https://docs.python.org/3/library/functions.html#open

error parameter of open() function says this:

'surrogateescape' will represent any incorrect bytes as code points in the 
Unicode Private Use Area ranging from U+DC80 to U+DCFF.


However, U+DC80 to U+DCFF doesn't belong to "Unicode Private Use Area"; it 
belongs to "Low Surrogate Area".



Suggested fix:

'surrogateescape' will represent any incorrect bytes as (unpaired) low 
surrogate code units ranging from U+DC80 to U+DCFF.

--
assignee: docs@python
components: Documentation
messages: 396632
nosy: bupjae2, docs@python
priority: normal
severity: normal
status: open
title: [doc] open() function errors='surrogateescape' has inaccurate information
type: enhancement
versions: Python 3.10, Python 3.11, Python 3.6, Python 3.7, Python 3.8, Python 
3.9

___
Python tracker 
<https://bugs.python.org/issue44522>
___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue44522] [doc] open() function errors='surrogateescape' has inaccurate information

2021-08-08 Thread Bupjae Lee


Bupjae Lee  added the comment:

I just noticed that very next sentence, "These private code points will then be 
turned back...", also needs to be fixed.

Suggested fix:

"These surrogate code units will then be turned back..."

--

___
Python tracker 
<https://bugs.python.org/issue44522>
___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com