From d2a573c59f6ed7403a428c948b450eb2c08cf150 Mon Sep 17 00:00:00 2001 From: Hugo van Kemenade <1324225+hugovk@users.noreply.github.com> Date: Mon, 22 Jun 2026 11:28:40 +0300 Subject: [PATCH 1/7] Fix indent --- Doc/whatsnew/3.16.rst | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/Doc/whatsnew/3.16.rst b/Doc/whatsnew/3.16.rst index ec8e367d938ddb..ae1941fba5b721 100644 --- a/Doc/whatsnew/3.16.rst +++ b/Doc/whatsnew/3.16.rst @@ -281,12 +281,12 @@ Deprecated * :mod:`abc` - * Soft-deprecated since Python 3.3 :class:`abc.abstractclassmethod`, - :class:`abc.abstractstaticmethod`, and :class:`abc.abstractproperty` - now raise a :exc:`DeprecationWarning`. - These classes will be removed in Python 3.21, instead - use :func:`abc.abstractmethod` with :func:`classmethod`, - :func:`staticmethod`, and :class:`property` respectively. + * Soft-deprecated since Python 3.3 :class:`abc.abstractclassmethod`, + :class:`abc.abstractstaticmethod`, and :class:`abc.abstractproperty` + now raise a :exc:`DeprecationWarning`. + These classes will be removed in Python 3.21, instead + use :func:`abc.abstractmethod` with :func:`classmethod`, + :func:`staticmethod`, and :class:`property` respectively. * :mod:`ast`: From bee9e4f3e522ab8b3f773fe811edfcad8d1d0d65 Mon Sep 17 00:00:00 2001 From: Hugo van Kemenade <1324225+hugovk@users.noreply.github.com> Date: Mon, 22 Jun 2026 11:30:16 +0300 Subject: [PATCH 2/7] Sort alphabetically --- Doc/whatsnew/3.16.rst | 23 +++++++++++++++-------- 1 file changed, 15 insertions(+), 8 deletions(-) diff --git a/Doc/whatsnew/3.16.rst b/Doc/whatsnew/3.16.rst index ae1941fba5b721..39bd54cbe83d79 100644 --- a/Doc/whatsnew/3.16.rst +++ b/Doc/whatsnew/3.16.rst @@ -99,14 +99,6 @@ gzip which is passed on to the constructor of the :class:`~gzip.GzipFile` class. (Contributed by Marin Misur in :gh:`91372`.) -lzma ----- - -* Add support of new BCJ filters ARM64 and RISC-V via - :const:`!lzma.FILTER_ARM64` and :const:`!lzma.FILTER_RISCV`. Note that the - new filters will work only if runtime library supports them. ARM64 filter - requires ``lzma`` 5.4.0 or newer while RISC-V requires 5.6.0 or newer. - (Contributed by Chien Wong in :gh:`115988`.) logging ------- @@ -119,6 +111,17 @@ logging before the rotation interval expires. (Contributed by Iván Márton and Serhiy Storchaka in :gh:`84649`.) + +lzma +---- + +* Add support of new BCJ filters ARM64 and RISC-V via + :const:`!lzma.FILTER_ARM64` and :const:`!lzma.FILTER_RISCV`. Note that the + new filters will work only if runtime library supports them. ARM64 filter + requires ``lzma`` 5.4.0 or newer while RISC-V requires 5.6.0 or newer. + (Contributed by Chien Wong in :gh:`115988`.) + + math ---- @@ -130,6 +133,7 @@ math 754-2019 and standardized in C23. (Contributed by Jeff Epler in :gh:`150534`.) + os -- @@ -137,6 +141,7 @@ os process via a pidfd. Available on Linux 5.6+. (Contributed by Maurycy Pawłowski-Wieroński in :gh:`149464`.) + shlex ----- @@ -144,6 +149,7 @@ shlex a string, even if it is already safe for a shell without being quoted. (Contributed by Jay Berry in :gh:`148846`.) + tkinter ------- @@ -157,6 +163,7 @@ tkinter synchronization of the displayed view with the underlying text. (Contributed by Serhiy Storchaka in :gh:`151675`.) + xml --- From dc927bd2a3e6355ee1c8eee58cc338c49051eac5 Mon Sep 17 00:00:00 2001 From: Hugo van Kemenade <1324225+hugovk@users.noreply.github.com> Date: Mon, 22 Jun 2026 11:37:40 +0300 Subject: [PATCH 3/7] Fix typo --- Doc/whatsnew/3.16.rst | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Doc/whatsnew/3.16.rst b/Doc/whatsnew/3.16.rst index 39bd54cbe83d79..83f776c621ca16 100644 --- a/Doc/whatsnew/3.16.rst +++ b/Doc/whatsnew/3.16.rst @@ -332,7 +332,7 @@ Build changes ============= * Remove the bundled copy of the libmpdec_ decimal library from the CPython source tree - to simplify maintenence and updates. The :mod:`decimal` module will now + to simplify maintenance and updates. The :mod:`decimal` module will now unconditionally use the system's libmpdec decimal library. Also remove the now unused :option:`!--with-system-libmpdec` :program:`configure` flag. This change has no impact on binary releases of Python, which have been From fd4095c678cb29d803c1c8fbc22ffcc7161d5299 Mon Sep 17 00:00:00 2001 From: Hugo van Kemenade <1324225+hugovk@users.noreply.github.com> Date: Mon, 22 Jun 2026 12:00:28 +0300 Subject: [PATCH 4/7] Add 'New deprecations' subheading --- Doc/whatsnew/3.16.rst | 3 +++ 1 file changed, 3 insertions(+) diff --git a/Doc/whatsnew/3.16.rst b/Doc/whatsnew/3.16.rst index 83f776c621ca16..161cc829696f69 100644 --- a/Doc/whatsnew/3.16.rst +++ b/Doc/whatsnew/3.16.rst @@ -286,6 +286,9 @@ tarfile Deprecated ========== +New deprecations +---------------- + * :mod:`abc` * Soft-deprecated since Python 3.3 :class:`abc.abstractclassmethod`, From 548cc05044c8b9fa8e39cfe4c83c7cb63e5dce17 Mon Sep 17 00:00:00 2001 From: Hugo van Kemenade <1324225+hugovk@users.noreply.github.com> Date: Mon, 22 Jun 2026 12:07:24 +0300 Subject: [PATCH 5/7] Spelling and grammar --- Doc/whatsnew/3.16.rst | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/Doc/whatsnew/3.16.rst b/Doc/whatsnew/3.16.rst index 161cc829696f69..24a767c56e8397 100644 --- a/Doc/whatsnew/3.16.rst +++ b/Doc/whatsnew/3.16.rst @@ -117,7 +117,7 @@ lzma * Add support of new BCJ filters ARM64 and RISC-V via :const:`!lzma.FILTER_ARM64` and :const:`!lzma.FILTER_RISCV`. Note that the - new filters will work only if runtime library supports them. ARM64 filter + new filters will work only if the runtime library supports them. ARM64 filter requires ``lzma`` 5.4.0 or newer while RISC-V requires 5.6.0 or newer. (Contributed by Chien Wong in :gh:`115988`.) @@ -168,15 +168,15 @@ xml --- * Add support for multiple multi-byte encodings in the :mod:`XML parser - `: "cp932", "cp949", "cp950", "Big5","EUC-JP", + `: "cp932", "cp949", "cp950", "Big5", "EUC-JP", "GB2312", "GBK", "johab", and "Shift_JIS". Add partial support (only BMP characters) for multi-byte encodings "Big5-HKSCS", "EUC_JIS-2004", "EUC_JISX0213", "Shift_JIS-2004", "Shift_JISX0213", "utf-8-sig" and non-standard aliases like "UTF8" (without hyphen). The parser now raises :exc:`ValueError` for known unsupported - multi-byte encodings such us "ISO-2022-JP" or "raw-unicode-escape" - instead of failing later, when encounter non-ASCII data. + multi-byte encodings such as "ISO-2022-JP" or "raw-unicode-escape" + instead of failing later, when encountering non-ASCII data. (Contributed by Serhiy Storchaka in :gh:`62259`.) zipfile From 69b384ba1a1b863388050a0bebb5e589a2e0b866 Mon Sep 17 00:00:00 2001 From: Hugo van Kemenade <1324225+hugovk@users.noreply.github.com> Date: Mon, 22 Jun 2026 12:22:25 +0300 Subject: [PATCH 6/7] Don't link to deprecations pending removal in 3.16, in 3.16 --- Doc/deprecations/index.rst | 4 ---- 1 file changed, 4 deletions(-) diff --git a/Doc/deprecations/index.rst b/Doc/deprecations/index.rst index 0ac0a0289d5fd4..6176169a6f1eba 100644 --- a/Doc/deprecations/index.rst +++ b/Doc/deprecations/index.rst @@ -1,8 +1,6 @@ Deprecations ============ -.. include:: pending-removal-in-3.16.rst - .. include:: pending-removal-in-3.17.rst .. include:: pending-removal-in-3.18.rst @@ -20,8 +18,6 @@ Deprecations C API deprecations ------------------ -.. include:: c-api-pending-removal-in-3.16.rst - .. include:: c-api-pending-removal-in-3.18.rst .. include:: c-api-pending-removal-in-3.19.rst From b64274f364b571219a14174a1043a1c38dc04488 Mon Sep 17 00:00:00 2001 From: Hugo van Kemenade <1324225+hugovk@users.noreply.github.com> Date: Mon, 22 Jun 2026 12:48:41 +0300 Subject: [PATCH 7/7] Fix broken link check --- Doc/tools/removed-ids.txt | 2 ++ 1 file changed, 2 insertions(+) diff --git a/Doc/tools/removed-ids.txt b/Doc/tools/removed-ids.txt index 81c0f098e4c8a8..271b383ba81230 100644 --- a/Doc/tools/removed-ids.txt +++ b/Doc/tools/removed-ids.txt @@ -7,7 +7,9 @@ c-api/file.html: deprecated-api # Removed sections library/asyncio-task.html: terminating-a-task-group deprecations/index.html: pending-removal-in-python-3-15 +deprecations/index.html: pending-removal-in-python-3-16 deprecations/index.html: c-api-pending-removal-in-python-3-15 +deprecations/index.html: c-api-pending-removal-in-python-3-16 # Removed libmpdec using/configure.html: cmdoption-with-system-libmpdec