Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit 39afd29

Browse files
hugovkAA-Turner
andauthored
gh-123299: Add missing pending removals (#133082)
Co-authored-by: Adam Turner <[email protected]>
1 parent b8633f9 commit 39afd29

File tree

6 files changed

+28
-0
lines changed

6 files changed

+28
-0
lines changed

Doc/deprecations/index.rst

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,11 +5,15 @@ Deprecations
55

66
.. include:: pending-removal-in-3.16.rst
77

8+
.. include:: pending-removal-in-3.17.rst
9+
810
.. include:: pending-removal-in-future.rst
911

1012
C API deprecations
1113
------------------
1214

1315
.. include:: c-api-pending-removal-in-3.15.rst
1416

17+
.. include:: c-api-pending-removal-in-3.18.rst
18+
1519
.. include:: c-api-pending-removal-in-future.rst

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

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -61,6 +61,12 @@ Pending removal in Python 3.16
6161
* Calling the Python implementation of :func:`functools.reduce` with *function*
6262
or *sequence* as keyword arguments has been deprecated since Python 3.14.
6363

64+
* :mod:`logging`:
65+
66+
Support for custom logging handlers with the *strm* argument is deprecated
67+
and scheduled for removal in Python 3.16. Define handlers with the *stream*
68+
argument instead. (Contributed by Mariusz Felisiak in :gh:`115032`.)
69+
6470
* :mod:`mimetypes`:
6571

6672
* Valid extensions start with a '.' or are empty for
Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
1+
Pending removal in Python 3.17
2+
------------------------------
3+
4+
* :mod:`typing`:
5+
6+
- Before Python 3.14, old-style unions were implemented using the private class
7+
``typing._UnionGenericAlias``. This class is no longer needed for the implementation,
8+
but it has been retained for backward compatibility, with removal scheduled for Python
9+
3.17. Users should use documented introspection helpers like :func:`typing.get_origin`
10+
and :func:`typing.get_args` instead of relying on private implementation details.

Doc/whatsnew/3.12.rst

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1347,6 +1347,8 @@ Deprecated
13471347

13481348
.. include:: ../deprecations/pending-removal-in-3.16.rst
13491349

1350+
.. include:: ../deprecations/pending-removal-in-3.17.rst
1351+
13501352
.. include:: ../deprecations/pending-removal-in-future.rst
13511353

13521354
.. _whatsnew312-removed:

Doc/whatsnew/3.13.rst

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2009,6 +2009,8 @@ New Deprecations
20092009

20102010
.. include:: ../deprecations/pending-removal-in-3.16.rst
20112011

2012+
.. include:: ../deprecations/pending-removal-in-3.17.rst
2013+
20122014
.. include:: ../deprecations/pending-removal-in-future.rst
20132015

20142016
CPython Bytecode Changes
@@ -2529,6 +2531,8 @@ Deprecated C APIs
25292531

25302532
.. include:: ../deprecations/c-api-pending-removal-in-3.15.rst
25312533

2534+
.. include:: ../deprecations/c-api-pending-removal-in-3.18.rst
2535+
25322536
.. include:: ../deprecations/c-api-pending-removal-in-future.rst
25332537

25342538
.. _pythoncapi-compat project: https://github.com/python/pythoncapi-compat/

Doc/whatsnew/3.14.rst

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1737,6 +1737,8 @@ Deprecated
17371737

17381738
.. include:: ../deprecations/pending-removal-in-3.16.rst
17391739

1740+
.. include:: ../deprecations/pending-removal-in-3.17.rst
1741+
17401742
.. include:: ../deprecations/pending-removal-in-future.rst
17411743

17421744
Removed

0 commit comments

Comments
 (0)