Skip to content

Commit

Permalink
bpo-37751: Document codecs.lookup() change in What's New in Python 3.9 (
Browse files Browse the repository at this point in the history
  • Loading branch information
shihai1991 committed Apr 23, 2021
1 parent fe24088 commit 32980fb
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions Doc/whatsnew/3.9.rst
Expand Up @@ -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
--------------------
Expand Down

0 comments on commit 32980fb

Please sign in to comment.