Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 0 additions & 4 deletions Doc/deprecations/index.rst
Original file line number Diff line number Diff line change
@@ -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
Expand All @@ -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
Expand Down
2 changes: 2 additions & 0 deletions Doc/tools/removed-ids.txt
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
46 changes: 28 additions & 18 deletions Doc/whatsnew/3.16.rst
Original file line number Diff line number Diff line change
Expand Up @@ -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
-------
Expand All @@ -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 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`.)


math
----

Expand All @@ -130,20 +133,23 @@ math
754-2019 and standardized in C23.
(Contributed by Jeff Epler in :gh:`150534`.)


os
--

* Add :func:`os.pidfd_getfd` for duplicating a file descriptor from another
process via a pidfd. Available on Linux 5.6+.
(Contributed by Maurycy Pawłowski-Wieroński in :gh:`149464`.)


shlex
-----

* Add keyword-only parameter *force* to :func:`shlex.quote` to force quoting
a string, even if it is already safe for a shell without being quoted.
(Contributed by Jay Berry in :gh:`148846`.)


tkinter
-------

Expand All @@ -157,19 +163,20 @@ tkinter
synchronization of the displayed view with the underlying text.
(Contributed by Serhiy Storchaka in :gh:`151675`.)


xml
---

* Add support for multiple multi-byte encodings in the :mod:`XML parser
<xml.parsers.expat>`: "cp932", "cp949", "cp950", "Big5","EUC-JP",
<xml.parsers.expat>`: "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
Expand Down Expand Up @@ -279,14 +286,17 @@ tarfile
Deprecated
==========

New deprecations
----------------

* :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`:

Expand Down Expand Up @@ -325,7 +335,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
Expand Down
Loading