summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorHai Shi <shihai1992@gmail.com>2021-04-23 09:10:43 (GMT)
committerGitHub <noreply@github.com>2021-04-23 09:10:43 (GMT)
commit32980fb669a6857276da18895fcc0cb6f6fbb544 (patch)
tree5b0f640979a4ceebff9baa03da2c4d30da766dd4
parentfe240882936d8b16b968b9a7adce6b2b3de4e7eb (diff)
downloadcpython-32980fb669a6857276da18895fcc0cb6f6fbb544.zip
cpython-32980fb669a6857276da18895fcc0cb6f6fbb544.tar.gz
cpython-32980fb669a6857276da18895fcc0cb6f6fbb544.tar.bz2
bpo-37751: Document codecs.lookup() change in What's New in Python 3.9 (GH-23096)
-rw-r--r--Doc/whatsnew/3.9.rst6
1 files changed, 6 insertions, 0 deletions
diff --git a/Doc/whatsnew/3.9.rst b/Doc/whatsnew/3.9.rst
index 602ed06..70809ff 100644
--- a/Doc/whatsnew/3.9.rst
+++ b/Doc/whatsnew/3.9.rst
@@ -1114,6 +1114,12 @@ Changes in the Python API
compatible classes that don't inherit from those mentioned types.
(Contributed by Roger Aiudi in :issue:`34775`).
+* :func:`codecs.lookup` now normalizes the encoding name the same way as
+ :func:`encodings.normalize_encoding`, except that :func:`codecs.lookup` also
+ converts the name to lower case. For example, ``"latex+latin1"`` encoding
+ name is now normalized to ``"latex_latin1"``.
+ (Contributed by Jordon Xu in :issue:`37751`.)
+
Changes in the C API
--------------------