Skip to content

Commit d1dbdbf

Browse files
authored
gh-151914: Copyedit "What's new in Python 3.16" (#151915)
1 parent 1ab8862 commit d1dbdbf

3 files changed

Lines changed: 30 additions & 22 deletions

File tree

Doc/deprecations/index.rst

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,6 @@
11
Deprecations
22
============
33

4-
.. include:: pending-removal-in-3.16.rst
5-
64
.. include:: pending-removal-in-3.17.rst
75

86
.. include:: pending-removal-in-3.18.rst
@@ -20,8 +18,6 @@ Deprecations
2018
C API deprecations
2119
------------------
2220

23-
.. include:: c-api-pending-removal-in-3.16.rst
24-
2521
.. include:: c-api-pending-removal-in-3.18.rst
2622

2723
.. include:: c-api-pending-removal-in-3.19.rst

Doc/tools/removed-ids.txt

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,9 @@ c-api/file.html: deprecated-api
77
# Removed sections
88
library/asyncio-task.html: terminating-a-task-group
99
deprecations/index.html: pending-removal-in-python-3-15
10+
deprecations/index.html: pending-removal-in-python-3-16
1011
deprecations/index.html: c-api-pending-removal-in-python-3-15
12+
deprecations/index.html: c-api-pending-removal-in-python-3-16
1113

1214
# Removed libmpdec
1315
using/configure.html: cmdoption-with-system-libmpdec

Doc/whatsnew/3.16.rst

Lines changed: 28 additions & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -99,14 +99,6 @@ gzip
9999
which is passed on to the constructor of the :class:`~gzip.GzipFile` class.
100100
(Contributed by Marin Misur in :gh:`91372`.)
101101

102-
lzma
103-
----
104-
105-
* Add support of new BCJ filters ARM64 and RISC-V via
106-
:const:`!lzma.FILTER_ARM64` and :const:`!lzma.FILTER_RISCV`. Note that the
107-
new filters will work only if runtime library supports them. ARM64 filter
108-
requires ``lzma`` 5.4.0 or newer while RISC-V requires 5.6.0 or newer.
109-
(Contributed by Chien Wong in :gh:`115988`.)
110102

111103
logging
112104
-------
@@ -119,6 +111,17 @@ logging
119111
before the rotation interval expires.
120112
(Contributed by Iván Márton and Serhiy Storchaka in :gh:`84649`.)
121113

114+
115+
lzma
116+
----
117+
118+
* Add support of new BCJ filters ARM64 and RISC-V via
119+
:const:`!lzma.FILTER_ARM64` and :const:`!lzma.FILTER_RISCV`. Note that the
120+
new filters will work only if the runtime library supports them. ARM64 filter
121+
requires ``lzma`` 5.4.0 or newer while RISC-V requires 5.6.0 or newer.
122+
(Contributed by Chien Wong in :gh:`115988`.)
123+
124+
122125
math
123126
----
124127

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

136+
133137
os
134138
--
135139

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

144+
140145
shlex
141146
-----
142147

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

152+
147153
tkinter
148154
-------
149155

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

166+
160167
xml
161168
---
162169

163170
* Add support for multiple multi-byte encodings in the :mod:`XML parser
164-
<xml.parsers.expat>`: "cp932", "cp949", "cp950", "Big5","EUC-JP",
171+
<xml.parsers.expat>`: "cp932", "cp949", "cp950", "Big5", "EUC-JP",
165172
"GB2312", "GBK", "johab", and "Shift_JIS".
166173
Add partial support (only BMP characters) for multi-byte encodings
167174
"Big5-HKSCS", "EUC_JIS-2004", "EUC_JISX0213", "Shift_JIS-2004",
168175
"Shift_JISX0213", "utf-8-sig" and non-standard aliases like "UTF8"
169176
(without hyphen).
170177
The parser now raises :exc:`ValueError` for known unsupported
171-
multi-byte encodings such us "ISO-2022-JP" or "raw-unicode-escape"
172-
instead of failing later, when encounter non-ASCII data.
178+
multi-byte encodings such as "ISO-2022-JP" or "raw-unicode-escape"
179+
instead of failing later, when encountering non-ASCII data.
173180
(Contributed by Serhiy Storchaka in :gh:`62259`.)
174181

175182
zipfile
@@ -279,14 +286,17 @@ tarfile
279286
Deprecated
280287
==========
281288

289+
New deprecations
290+
----------------
291+
282292
* :mod:`abc`
283293

284-
* Soft-deprecated since Python 3.3 :class:`abc.abstractclassmethod`,
285-
:class:`abc.abstractstaticmethod`, and :class:`abc.abstractproperty`
286-
now raise a :exc:`DeprecationWarning`.
287-
These classes will be removed in Python 3.21, instead
288-
use :func:`abc.abstractmethod` with :func:`classmethod`,
289-
:func:`staticmethod`, and :class:`property` respectively.
294+
* Soft-deprecated since Python 3.3 :class:`abc.abstractclassmethod`,
295+
:class:`abc.abstractstaticmethod`, and :class:`abc.abstractproperty`
296+
now raise a :exc:`DeprecationWarning`.
297+
These classes will be removed in Python 3.21, instead
298+
use :func:`abc.abstractmethod` with :func:`classmethod`,
299+
:func:`staticmethod`, and :class:`property` respectively.
290300

291301
* :mod:`ast`:
292302

@@ -325,7 +335,7 @@ Build changes
325335
=============
326336

327337
* Remove the bundled copy of the libmpdec_ decimal library from the CPython source tree
328-
to simplify maintenence and updates. The :mod:`decimal` module will now
338+
to simplify maintenance and updates. The :mod:`decimal` module will now
329339
unconditionally use the system's libmpdec decimal library. Also remove the
330340
now unused :option:`!--with-system-libmpdec` :program:`configure` flag.
331341
This change has no impact on binary releases of Python, which have been

0 commit comments

Comments
 (0)