Issue 28393: Update encoding lookup docs wrt #27938

Issue28393

Created on 2016-10-09 11:39 by nnnnnn, last changed 2022-04-11 14:58 by admin. This issue is now closed.

Files
File name Uploaded Description Edit
codecs-doc.patch nnnnnn, 2016-10-09 11:39 review
codecs-doc-2.patch nnnnnn, 2016-10-11 20:07 review
codecs-doc-3.patch nnnnnn, 2016-10-13 20:47 review
Pull Requests
URL Status Linked Edit
PR 4871 merged nnnnnn, 2017-12-14 20:44
PR 4881 merged python-dev, 2017-12-15 10:20
PR 6374 nnnnnn, 2018-04-04 17:52
Messages (10)
msg278354 - (view) Author: (nnnnnn) * Date: 2016-10-09 11:39
The attached patch brings codecs docs up to date with respect to changes in #27938.
msg278501 - (view) Author: Berker Peksag (berker.peksag) * (Python committer) Date: 2016-10-11 19:58
Thanks for the patch! Do we still need to keep the last sentence? Is there any other alternatives that can be used? Perhaps the word "spellings" can be changed with "aliases" to make the sentence a little bit clearer.
msg278502 - (view) Author: (nnnnnn) * Date: 2016-10-11 20:07
I believe (but haven't checked) that additionally, encoding names are case insensitive with respect to the fast-path behavior. But then again I also suppose that's the way it was before #27938 as well, which is why I didn't change that in this patch. But why not add it while at it, if I'm correct. Something like this revised patch?
msg278526 - (view) Author: Marc-Andre Lemburg (lemburg) * (Python committer) Date: 2016-10-12 10:38
The names are indeed case-insensitive.

However, something important is missing: the implementation details changed between Python 3.5 and 3.6. Please check the implementation for details and update the documentation with versionadded flags. Thanks.
msg278612 - (view) Author: (nnnnnn) * Date: 2016-10-13 20:47
codecs-doc-3 contains a versionadded note about us-ascii. I think that's the only end user visible change in the new implementation.
msg278617 - (view) Author: Marc-Andre Lemburg (lemburg) * (Python committer) Date: 2016-10-13 21:07
Thanks, Ville.
msg308337 - (view) Author: (nnnnnn) * Date: 2017-12-14 20:48
I'm getting a 500 internatl server error trying to update https://bugs.python.org/review/28393/, so noting here that the latest review issue has been addressed in https://github.com/python/cpython/pull/4871
msg308373 - (view) Author: STINNER Victor (vstinner) * (Python committer) Date: 2017-12-15 10:19
New changeset 297fd876aad8ef443d8992618de22c46dbda258b by Victor Stinner (Ville Skyttä) in branch 'master':
bpo-28393: Update encoding lookup docs wrt bpo-27938 (#4871)
https://github.com/python/cpython/commit/297fd876aad8ef443d8992618de22c46dbda258b
msg308391 - (view) Author: STINNER Victor (vstinner) * (Python committer) Date: 2017-12-15 14:23
New changeset 77bf6da7258b4a312e224860ea50ac010aa17c1e by Victor Stinner (Miss Islington (bot)) in branch '3.6':
bpo-28393: Update encoding lookup docs wrt bpo-27938 (GH-4871) (#4881)
https://github.com/python/cpython/commit/77bf6da7258b4a312e224860ea50ac010aa17c1e
msg308393 - (view) Author: STINNER Victor (vstinner) * (Python committer) Date: 2017-12-15 14:23
Thank you Ville Skyttä for your contribution! I merged your PR and backported it to Python 3.6.
History
Date User Action Args
2022-04-11 14:58:38adminsetgithub: 72579
2018-04-04 17:52:44nnnnnnsetpull_requests: + pull_request6085
2017-12-15 14:23:53vstinnersetstatus: open -> closed
resolution: fixed
messages: + msg308393

stage: patch review -> resolved

2017-12-15 14:23:26vstinnersetmessages: + msg308391
2017-12-15 10:20:02python-devsetpull_requests: + pull_request4776
2017-12-15 10:19:30vstinnersetmessages: + msg308373
2017-12-14 20:48:24nnnnnnsetmessages: + msg308337
2017-12-14 20:44:51nnnnnnsetpull_requests: + pull_request4762
2016-11-06 12:55:48berker.peksaglinkissue28543 superseder
2016-10-13 21:07:14lemburgsetmessages: + msg278617
2016-10-13 20:47:40nnnnnnsetfiles: + codecs-doc-3.patch

messages: + msg278612

2016-10-12 10:38:50lemburgsetnosy: + lemburg
messages: + msg278526
2016-10-11 20:07:23nnnnnnsetfiles: + codecs-doc-2.patch

messages: + msg278502

2016-10-11 19:58:24berker.peksagsetversions: + Python 3.6, Python 3.7
nosy: + berker.peksag

messages: + msg278501

type: enhancement -> behavior
stage: patch review

2016-10-09 11:39:09nnnnnncreate