]> git.ipfire.org Git - thirdparty/Python/cpython.git/commitdiff
gh-123299: Add missing pending removals (#133082)
authorHugo van Kemenade <1324225+hugovk@users.noreply.github.com>
Fri, 2 May 2025 08:18:24 +0000 (11:18 +0300)
committerGitHub <noreply@github.com>
Fri, 2 May 2025 08:18:24 +0000 (11:18 +0300)
Co-authored-by: Adam Turner <9087854+AA-Turner@users.noreply.github.com>
Doc/deprecations/index.rst
Doc/deprecations/pending-removal-in-3.16.rst
Doc/deprecations/pending-removal-in-3.17.rst [new file with mode: 0644]
Doc/whatsnew/3.12.rst
Doc/whatsnew/3.13.rst
Doc/whatsnew/3.14.rst

index bac6e3f18d4594c77f0486b467624678a12d4276..bb78f7b36071b80682764d59a02d4e04480f4622 100644 (file)
@@ -5,6 +5,8 @@ Deprecations
 
 .. include:: pending-removal-in-3.16.rst
 
+.. include:: pending-removal-in-3.17.rst
+
 .. include:: pending-removal-in-future.rst
 
 C API deprecations
@@ -12,4 +14,6 @@ C API deprecations
 
 .. include:: c-api-pending-removal-in-3.15.rst
 
+.. include:: c-api-pending-removal-in-3.18.rst
+
 .. include:: c-api-pending-removal-in-future.rst
index 90183f1ff233c13f9bb1f0eb97b1f862155df737..cdd76ee693f31bb3ccc693caff2f6806dc177193 100644 (file)
@@ -61,6 +61,12 @@ Pending removal in Python 3.16
   * Calling the Python implementation of :func:`functools.reduce` with *function*
     or *sequence* as keyword arguments has been deprecated since Python 3.14.
 
+* :mod:`logging`:
+
+  Support for custom logging handlers with the *strm* argument is deprecated
+  and scheduled for removal in Python 3.16. Define handlers with the *stream*
+  argument instead. (Contributed by Mariusz Felisiak in :gh:`115032`.)
+
 * :mod:`mimetypes`:
 
   * Valid extensions start with a '.' or are empty for
diff --git a/Doc/deprecations/pending-removal-in-3.17.rst b/Doc/deprecations/pending-removal-in-3.17.rst
new file mode 100644 (file)
index 0000000..370b983
--- /dev/null
@@ -0,0 +1,10 @@
+Pending removal in Python 3.17
+------------------------------
+
+* :mod:`typing`:
+
+  - Before Python 3.14, old-style unions were implemented using the private class
+    ``typing._UnionGenericAlias``. This class is no longer needed for the implementation,
+    but it has been retained for backward compatibility, with removal scheduled for Python
+    3.17. Users should use documented introspection helpers like :func:`typing.get_origin`
+    and :func:`typing.get_args` instead of relying on private implementation details.
index afbc7a1c16f2dedd2b0c1c42b0b55dbd014acec5..a65f59c0a72315ddac8169d80c8449a02d1ef5fe 100644 (file)
@@ -1347,6 +1347,8 @@ Deprecated
 
 .. include:: ../deprecations/pending-removal-in-3.16.rst
 
+.. include:: ../deprecations/pending-removal-in-3.17.rst
+
 .. include:: ../deprecations/pending-removal-in-future.rst
 
 .. _whatsnew312-removed:
index 2090759d3c4fde1ac6dbc740e861c7baa5f3de75..e20e49325c01d591381467f04163d58bfea14012 100644 (file)
@@ -2009,6 +2009,8 @@ New Deprecations
 
 .. include:: ../deprecations/pending-removal-in-3.16.rst
 
+.. include:: ../deprecations/pending-removal-in-3.17.rst
+
 .. include:: ../deprecations/pending-removal-in-future.rst
 
 CPython Bytecode Changes
@@ -2529,6 +2531,8 @@ Deprecated C APIs
 
 .. include:: ../deprecations/c-api-pending-removal-in-3.15.rst
 
+.. include:: ../deprecations/c-api-pending-removal-in-3.18.rst
+
 .. include:: ../deprecations/c-api-pending-removal-in-future.rst
 
 .. _pythoncapi-compat project: https://github.com/python/pythoncapi-compat/
index dad63e47a62dba68cdeb83812127e95409972a00..c0a824ee8ddf4dad95628a524bc6fbaf89437834 100644 (file)
@@ -1737,6 +1737,8 @@ Deprecated
 
 .. include:: ../deprecations/pending-removal-in-3.16.rst
 
+.. include:: ../deprecations/pending-removal-in-3.17.rst
+
 .. include:: ../deprecations/pending-removal-in-future.rst
 
 Removed