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

2021-08-09 Thread Łukasz Langa

Łukasz Langa  added the comment:

Thanks, meowmeowcat! ✨  ✨

--
resolution:  -> fixed
stage: patch review -> resolved
status: open -> closed
versions:  -Python 3.6, Python 3.7, Python 3.8

___
Python tracker 

___
___
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-09 Thread Łukasz Langa

Łukasz Langa  added the comment:


New changeset 037ef8d6d9cc8225d6db0305cee2d8d0ee5bee74 by Miss Islington (bot) 
in branch '3.9':
bpo-44522: Fix inaccurate information in open() function (GH-27650) (GH-27682)
https://github.com/python/cpython/commit/037ef8d6d9cc8225d6db0305cee2d8d0ee5bee74


--

___
Python tracker 

___
___
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-09 Thread miss-islington


miss-islington  added the comment:


New changeset c79aa427c0b0c8a09e5c22a5420baf837054f509 by Miss Islington (bot) 
in branch '3.10':
bpo-44522: Fix inaccurate information in open() function (GH-27650)
https://github.com/python/cpython/commit/c79aa427c0b0c8a09e5c22a5420baf837054f509


--

___
Python tracker 

___
___
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-09 Thread miss-islington


Change by miss-islington :


--
pull_requests: +26167
pull_request: https://github.com/python/cpython/pull/27682

___
Python tracker 

___
___
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-09 Thread Łukasz Langa

Łukasz Langa  added the comment:


New changeset b05e9b63fcfcd4bd7a6434fa9f9a7028d12f91c4 by meowmeowmeowcat in 
branch 'main':
bpo-44522: Fix inaccurate information in open() function (GH-27650)
https://github.com/python/cpython/commit/b05e9b63fcfcd4bd7a6434fa9f9a7028d12f91c4


--
nosy: +lukasz.langa

___
Python tracker 

___
___
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-09 Thread miss-islington


Change by miss-islington :


--
nosy: +miss-islington
nosy_count: 4.0 -> 5.0
pull_requests: +26166
pull_request: https://github.com/python/cpython/pull/27681

___
Python tracker 

___
___
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-09 Thread meowmeowcat


meowmeowcat  added the comment:

Oh, I missed this too. I'll fix it.

--

___
Python tracker 

___
___
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 

___
___
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-07 Thread meowmeowcat


Change by meowmeowcat :


--
keywords: +patch
pull_requests: +26144
stage:  -> patch review
pull_request: https://github.com/python/cpython/pull/27650

___
Python tracker 

___
___
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-07 Thread meowmeowcat


meowmeowcat  added the comment:

Thanks!

Confirmed by: https://docs.python.org/3/library/codecs.html#error-handlers

I'll open a PR for this.

--
nosy: +meowmeowmeowcat

___
Python tracker 

___
___
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-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 

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