Skip to content

Commit 4e75509

Browse files
authored
gh-122085: Use include files for whatsnew/3.14.rst deprecations (#122242)
1 parent 4e04d1a commit 4e75509

File tree

4 files changed

+32
-13
lines changed

4 files changed

+32
-13
lines changed
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,10 @@
11
Pending Removal in Python 3.16
22
------------------------------
33

4-
* :class:`array.array` ``'u'`` type (:c:type:`wchar_t`):
4+
* :mod:`array`:
5+
:class:`array.array` ``'u'`` type (:c:type:`wchar_t`):
56
use the ``'w'`` type instead (``Py_UCS4``).
7+
8+
* :mod:`symtable`:
9+
Deprecate :meth:`symtable.Class.get_methods` due to the lack of interest.
10+
(Contributed by Bénédikt Tran in :gh:`119698`.)

Doc/deprecations/pending-removal-in-future.rst

+4
Original file line numberDiff line numberDiff line change
@@ -34,6 +34,10 @@ although there is currently no date scheduled for their removal.
3434
:class:`complex`: these methods will be required to return an instance of
3535
:class:`complex`.
3636
* Delegation of ``int()`` to ``__trunc__()`` method.
37+
* Passing a complex number as the *real* or *imag* argument in the
38+
:func:`complex` constructor is now deprecated; it should only be passed
39+
as a single positional argument.
40+
(Contributed by Serhiy Storchaka in :gh:`109218`.)
3741

3842
* :mod:`calendar`: ``calendar.January`` and ``calendar.February`` constants are
3943
deprecated and replaced by :data:`calendar.JANUARY` and

Doc/whatsnew/3.12.rst

+2
Original file line numberDiff line numberDiff line change
@@ -1336,6 +1336,8 @@ Deprecated
13361336

13371337
.. include:: ../deprecations/pending-removal-in-3.15.rst
13381338

1339+
.. include:: ../deprecations/pending-removal-in-3.16.rst
1340+
13391341
.. include:: ../deprecations/pending-removal-in-future.rst
13401342

13411343
Removed

Doc/whatsnew/3.14.rst

+20-12
Original file line numberDiff line numberDiff line change
@@ -156,6 +156,12 @@ pdb
156156
:pdbcmd:`commands` are preserved across hard-coded breakpoints.
157157
(Contributed by Tian Gao in :gh:`121450`.)
158158

159+
pickle
160+
------
161+
162+
* Set the default protocol version on the :mod:`pickle` module to 5.
163+
For more details, please see :ref:`pickle protocols <pickle-protocols>`.
164+
159165
symtable
160166
--------
161167

@@ -167,12 +173,7 @@ symtable
167173

168174
(Contributed by Bénédikt Tran in :gh:`120029`.)
169175

170-
pickle
171-
------
172-
173-
* Set the default protocol version on the :mod:`pickle` module to 5.
174-
For more details, please see :ref:`pickle protocols <pickle-protocols>`.
175-
176+
.. Add improved modules above alphabetically, not here at the end.
176177
177178
Optimizations
178179
=============
@@ -185,24 +186,32 @@ asyncio
185186
reduces memory usage.
186187
(Contributed by Kumar Aditya in :gh:`107803`.)
187188

188-
189-
190189
Deprecated
191190
==========
192191

193-
* Passing a complex number as the *real* or *imag* argument in the
192+
* :mod:`builtins`:
193+
Passing a complex number as the *real* or *imag* argument in the
194194
:func:`complex` constructor is now deprecated; it should only be passed
195195
as a single positional argument.
196196
(Contributed by Serhiy Storchaka in :gh:`109218`.)
197197

198-
* :term:`Soft deprecate <soft deprecated>` :func:`os.popen` and
198+
* :mod:`os`:
199+
:term:`Soft deprecate <soft deprecated>` :func:`os.popen` and
199200
:func:`os.spawn* <os.spawnl>` functions. They should no longer be used to
200201
write new code. The :mod:`subprocess` module is recommended instead.
201202
(Contributed by Victor Stinner in :gh:`120743`.)
202203

203-
* Deprecate :meth:`symtable.Class.get_methods` due to the lack of interest.
204+
* :mod:`symtable`:
205+
Deprecate :meth:`symtable.Class.get_methods` due to the lack of interest.
204206
(Contributed by Bénédikt Tran in :gh:`119698`.)
205207

208+
.. Add deprecations above alphabetically, not here at the end.
209+
210+
.. include:: ../deprecations/pending-removal-in-3.15.rst
211+
212+
.. include:: ../deprecations/pending-removal-in-3.16.rst
213+
214+
.. include:: ../deprecations/pending-removal-in-future.rst
206215

207216
Removed
208217
=======
@@ -262,7 +271,6 @@ asyncio
262271

263272
(Contributed by Kumar Aditya in :gh:`120804`.)
264273

265-
266274
collections.abc
267275
---------------
268276

0 commit comments

Comments
 (0)