From 803e938cc13537a53380c6c22a9c514777772969 Mon Sep 17 00:00:00 2001 From: Hugo van Kemenade Date: Mon, 9 May 2022 17:18:22 +0300 Subject: [PATCH 1/7] List dead batteries as pending removal in 3.13 --- Doc/whatsnew/3.12.rst | 25 +++++++++++++++++++++++++ 1 file changed, 25 insertions(+) diff --git a/Doc/whatsnew/3.12.rst b/Doc/whatsnew/3.12.rst index af8973ae203040..9c638b34484b51 100644 --- a/Doc/whatsnew/3.12.rst +++ b/Doc/whatsnew/3.12.rst @@ -98,6 +98,31 @@ Deprecated ========== +Pending Removal in Python 3.13 +============================== + +The following APIs have been deprecated in earlier Python releases, +and will be removed in Python 3.13. + +* :mod:`aifc` (:pep:`594`) +* :mod:`audioop` (:pep:`594`) +* :mod:`cgi` (:pep:`594`) +* :mod:`cgitb` (:pep:`594`) +* :mod:`chunk` (:pep:`594`) +* :mod:`crypt` (:pep:`594`) +* :mod:`imghdr` (:pep:`594`) +* :mod:`mailcap` (:pep:`594`) +* :mod:`msilib` (:pep:`594`) +* :mod:`nis` (:pep:`594`) +* :mod:`nntplib` (:pep:`594`) +* :mod:`ossaudiodev` (:pep:`594`) +* :mod:`pipes` (:pep:`594`) +* :mod:`sndhdr` (:pep:`594`) +* :mod:`spwd` (:pep:`594`) +* :mod:`sunau` (:pep:`594`) +* :mod:`telnetlib` (:pep:`594`) +* :mod:`uu` (:pep:`594`) +* :mod:`xdrlib` (:pep:`594`) Removed ======= From 7c5d5dec1c0237583859eb180d7c1ff3bb11d02a Mon Sep 17 00:00:00 2001 From: Hugo van Kemenade Date: Mon, 9 May 2022 17:27:42 +0300 Subject: [PATCH 2/7] Add other pending removals for 3.13, from what's new in 3.11 --- Doc/whatsnew/3.12.rst | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/Doc/whatsnew/3.12.rst b/Doc/whatsnew/3.12.rst index 9c638b34484b51..4b4184fff52a87 100644 --- a/Doc/whatsnew/3.12.rst +++ b/Doc/whatsnew/3.12.rst @@ -109,8 +109,10 @@ and will be removed in Python 3.13. * :mod:`cgi` (:pep:`594`) * :mod:`cgitb` (:pep:`594`) * :mod:`chunk` (:pep:`594`) +* :class:`configparser.LegacyInterpolation` (:issue:`46607`) * :mod:`crypt` (:pep:`594`) * :mod:`imghdr` (:pep:`594`) +* :func:`locale.getdefaultlocale` (:issue:`46659`) * :mod:`mailcap` (:pep:`594`) * :mod:`msilib` (:pep:`594`) * :mod:`nis` (:pep:`594`) @@ -121,7 +123,12 @@ and will be removed in Python 3.13. * :mod:`spwd` (:pep:`594`) * :mod:`sunau` (:pep:`594`) * :mod:`telnetlib` (:pep:`594`) +* :meth:`turtle.RawTurtle.settiltangle` (:issue:`45837`) +* :func:`unittest.findTestCases` (:issue:`5846`) +* :func:`unittest.makeSuite` (:issue:`5846`) +* :func:`unittest.getTestCaseNames` (:issue:`5846`) * :mod:`uu` (:pep:`594`) +* :class:`webbrowser.MacOSX` (:issue:`42255`) * :mod:`xdrlib` (:pep:`594`) Removed From 0291dec1025534f23ed4115a4559d3d714463071 Mon Sep 17 00:00:00 2001 From: Hugo van Kemenade Date: Mon, 9 May 2022 17:31:22 +0300 Subject: [PATCH 3/7] Add future pending removals for 3.13, from what's new in 3.10 and 3.11 --- Doc/whatsnew/3.12.rst | 19 +++++++++++++++++++ 1 file changed, 19 insertions(+) diff --git a/Doc/whatsnew/3.12.rst b/Doc/whatsnew/3.12.rst index 4b4184fff52a87..1484d651caf225 100644 --- a/Doc/whatsnew/3.12.rst +++ b/Doc/whatsnew/3.12.rst @@ -131,6 +131,25 @@ and will be removed in Python 3.13. * :class:`webbrowser.MacOSX` (:issue:`42255`) * :mod:`xdrlib` (:pep:`594`) +Pending Removal in Future Versions +================================== + +The following APIs were deprecated in earlier Python versions and will be removed, +although there is currently no date scheduled for their removal. + +* :class:`typing.Text` (:gh:`92332`) + +* Currently Python accepts numeric literals immediately followed by keywords, + for example ``0in x``, ``1or x``, ``0if 1else 2``. It allows confusing + and ambiguous expressions like ``[0x1for x in y]`` (which can be + interpreted as ``[0x1 for x in y]`` or ``[0x1f or x in y]``). + A deprecation warning is raised if the numeric literal is + immediately followed by one of keywords :keyword:`and`, :keyword:`else`, + :keyword:`for`, :keyword:`if`, :keyword:`in`, :keyword:`is` and :keyword:`or`. + In future releases it will be changed to syntax warning, and finally to + syntax error. (:issue:`43833`) + + Removed ======= From 10d74b08ca6aacae7deafd61b46e09fcd40c1a0c Mon Sep 17 00:00:00 2001 From: Hugo van Kemenade Date: Mon, 9 May 2022 22:04:19 +0300 Subject: [PATCH 4/7] A syntax warning is raised in 3.11 beta 1 --- Doc/whatsnew/3.12.rst | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/Doc/whatsnew/3.12.rst b/Doc/whatsnew/3.12.rst index 1484d651caf225..6e8baa3adfbd7a 100644 --- a/Doc/whatsnew/3.12.rst +++ b/Doc/whatsnew/3.12.rst @@ -143,11 +143,10 @@ although there is currently no date scheduled for their removal. for example ``0in x``, ``1or x``, ``0if 1else 2``. It allows confusing and ambiguous expressions like ``[0x1for x in y]`` (which can be interpreted as ``[0x1 for x in y]`` or ``[0x1f or x in y]``). - A deprecation warning is raised if the numeric literal is + A syntax warning is raised if the numeric literal is immediately followed by one of keywords :keyword:`and`, :keyword:`else`, :keyword:`for`, :keyword:`if`, :keyword:`in`, :keyword:`is` and :keyword:`or`. - In future releases it will be changed to syntax warning, and finally to - syntax error. (:issue:`43833`) + In a future release it will be changed to a syntax error. (:issue:`43833`) Removed From a16c72acaf377ce5f67b4b015f1f0111be5629af Mon Sep 17 00:00:00 2001 From: Hugo van Kemenade Date: Mon, 9 May 2022 22:08:22 +0300 Subject: [PATCH 5/7] Group 3.13 removals by module and other APIs --- Doc/whatsnew/3.12.rst | 13 +++++++++---- 1 file changed, 9 insertions(+), 4 deletions(-) diff --git a/Doc/whatsnew/3.12.rst b/Doc/whatsnew/3.12.rst index 6e8baa3adfbd7a..9aa538f732e663 100644 --- a/Doc/whatsnew/3.12.rst +++ b/Doc/whatsnew/3.12.rst @@ -104,15 +104,15 @@ Pending Removal in Python 3.13 The following APIs have been deprecated in earlier Python releases, and will be removed in Python 3.13. +Removed modules: + * :mod:`aifc` (:pep:`594`) * :mod:`audioop` (:pep:`594`) * :mod:`cgi` (:pep:`594`) * :mod:`cgitb` (:pep:`594`) * :mod:`chunk` (:pep:`594`) -* :class:`configparser.LegacyInterpolation` (:issue:`46607`) * :mod:`crypt` (:pep:`594`) * :mod:`imghdr` (:pep:`594`) -* :func:`locale.getdefaultlocale` (:issue:`46659`) * :mod:`mailcap` (:pep:`594`) * :mod:`msilib` (:pep:`594`) * :mod:`nis` (:pep:`594`) @@ -123,13 +123,18 @@ and will be removed in Python 3.13. * :mod:`spwd` (:pep:`594`) * :mod:`sunau` (:pep:`594`) * :mod:`telnetlib` (:pep:`594`) +* :mod:`uu` (:pep:`594`) +* :mod:`xdrlib` (:pep:`594`) + +Other removed APIs: + +* :class:`configparser.LegacyInterpolation` (:issue:`46607`) +* :func:`locale.getdefaultlocale` (:issue:`46659`) * :meth:`turtle.RawTurtle.settiltangle` (:issue:`45837`) * :func:`unittest.findTestCases` (:issue:`5846`) * :func:`unittest.makeSuite` (:issue:`5846`) * :func:`unittest.getTestCaseNames` (:issue:`5846`) -* :mod:`uu` (:pep:`594`) * :class:`webbrowser.MacOSX` (:issue:`42255`) -* :mod:`xdrlib` (:pep:`594`) Pending Removal in Future Versions ================================== From 54ac1cd6cfcb82b22052ea39b19864e3ea1d5864 Mon Sep 17 00:00:00 2001 From: Hugo van Kemenade Date: Tue, 10 May 2022 00:03:40 +0300 Subject: [PATCH 6/7] Avoid repetition --- Doc/whatsnew/3.12.rst | 42 +++++++++++++++++++++--------------------- 1 file changed, 21 insertions(+), 21 deletions(-) diff --git a/Doc/whatsnew/3.12.rst b/Doc/whatsnew/3.12.rst index 9aa538f732e663..408e8366d64391 100644 --- a/Doc/whatsnew/3.12.rst +++ b/Doc/whatsnew/3.12.rst @@ -104,27 +104,27 @@ Pending Removal in Python 3.13 The following APIs have been deprecated in earlier Python releases, and will be removed in Python 3.13. -Removed modules: - -* :mod:`aifc` (:pep:`594`) -* :mod:`audioop` (:pep:`594`) -* :mod:`cgi` (:pep:`594`) -* :mod:`cgitb` (:pep:`594`) -* :mod:`chunk` (:pep:`594`) -* :mod:`crypt` (:pep:`594`) -* :mod:`imghdr` (:pep:`594`) -* :mod:`mailcap` (:pep:`594`) -* :mod:`msilib` (:pep:`594`) -* :mod:`nis` (:pep:`594`) -* :mod:`nntplib` (:pep:`594`) -* :mod:`ossaudiodev` (:pep:`594`) -* :mod:`pipes` (:pep:`594`) -* :mod:`sndhdr` (:pep:`594`) -* :mod:`spwd` (:pep:`594`) -* :mod:`sunau` (:pep:`594`) -* :mod:`telnetlib` (:pep:`594`) -* :mod:`uu` (:pep:`594`) -* :mod:`xdrlib` (:pep:`594`) +Removed :pep:`594` modules: + +* :mod:`aifc` +* :mod:`audioop` +* :mod:`cgi` +* :mod:`cgitb` +* :mod:`chunk` +* :mod:`crypt` +* :mod:`imghdr` +* :mod:`mailcap` +* :mod:`msilib` +* :mod:`nis` +* :mod:`nntplib` +* :mod:`ossaudiodev` +* :mod:`pipes` +* :mod:`sndhdr` +* :mod:`spwd` +* :mod:`sunau` +* :mod:`telnetlib` +* :mod:`uu` +* :mod:`xdrlib` Other removed APIs: From 2260781ecad9f506a62394e5c4552749c34d8c07 Mon Sep 17 00:00:00 2001 From: Hugo van Kemenade Date: Mon, 30 May 2022 22:34:26 +0300 Subject: [PATCH 7/7] Review updates --- Doc/whatsnew/3.12.rst | 22 +++++++++++----------- 1 file changed, 11 insertions(+), 11 deletions(-) diff --git a/Doc/whatsnew/3.12.rst b/Doc/whatsnew/3.12.rst index 408e8366d64391..c5f0ea453a7988 100644 --- a/Doc/whatsnew/3.12.rst +++ b/Doc/whatsnew/3.12.rst @@ -101,10 +101,10 @@ Deprecated Pending Removal in Python 3.13 ============================== -The following APIs have been deprecated in earlier Python releases, +The following modules and APIs have been deprecated in earlier Python releases, and will be removed in Python 3.13. -Removed :pep:`594` modules: +Modules (see :pep:`594`): * :mod:`aifc` * :mod:`audioop` @@ -126,15 +126,15 @@ Removed :pep:`594` modules: * :mod:`uu` * :mod:`xdrlib` -Other removed APIs: +APIs: -* :class:`configparser.LegacyInterpolation` (:issue:`46607`) -* :func:`locale.getdefaultlocale` (:issue:`46659`) -* :meth:`turtle.RawTurtle.settiltangle` (:issue:`45837`) -* :func:`unittest.findTestCases` (:issue:`5846`) -* :func:`unittest.makeSuite` (:issue:`5846`) -* :func:`unittest.getTestCaseNames` (:issue:`5846`) -* :class:`webbrowser.MacOSX` (:issue:`42255`) +* :class:`configparser.LegacyInterpolation` (:gh:`90765`) +* :func:`locale.getdefaultlocale` (:gh:`90817`) +* :meth:`turtle.RawTurtle.settiltangle` (:gh:`50096`) +* :func:`unittest.findTestCases` (:gh:`50096`) +* :func:`unittest.makeSuite` (:gh:`50096`) +* :func:`unittest.getTestCaseNames` (:gh:`50096`) +* :class:`webbrowser.MacOSX` (:gh:`86421`) Pending Removal in Future Versions ================================== @@ -151,7 +151,7 @@ although there is currently no date scheduled for their removal. A syntax warning is raised if the numeric literal is immediately followed by one of keywords :keyword:`and`, :keyword:`else`, :keyword:`for`, :keyword:`if`, :keyword:`in`, :keyword:`is` and :keyword:`or`. - In a future release it will be changed to a syntax error. (:issue:`43833`) + In a future release it will be changed to a syntax error. (:gh:`87999`) Removed pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy