Skip to content

Commit 86a5e22

Browse files
authored
GH-92308 What's New: list pending removals in 3.13 and future versions (#92562)
1 parent 4c71d22 commit 86a5e22

File tree

1 file changed

+55
-0
lines changed

1 file changed

+55
-0
lines changed

Doc/whatsnew/3.12.rst

Lines changed: 55 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -110,6 +110,61 @@ Deprecated
110110
==========
111111

112112

113+
Pending Removal in Python 3.13
114+
==============================
115+
116+
The following modules and APIs have been deprecated in earlier Python releases,
117+
and will be removed in Python 3.13.
118+
119+
Modules (see :pep:`594`):
120+
121+
* :mod:`aifc`
122+
* :mod:`audioop`
123+
* :mod:`cgi`
124+
* :mod:`cgitb`
125+
* :mod:`chunk`
126+
* :mod:`crypt`
127+
* :mod:`imghdr`
128+
* :mod:`mailcap`
129+
* :mod:`msilib`
130+
* :mod:`nis`
131+
* :mod:`nntplib`
132+
* :mod:`ossaudiodev`
133+
* :mod:`pipes`
134+
* :mod:`sndhdr`
135+
* :mod:`spwd`
136+
* :mod:`sunau`
137+
* :mod:`telnetlib`
138+
* :mod:`uu`
139+
* :mod:`xdrlib`
140+
141+
APIs:
142+
143+
* :class:`configparser.LegacyInterpolation` (:gh:`90765`)
144+
* :func:`locale.getdefaultlocale` (:gh:`90817`)
145+
* :meth:`turtle.RawTurtle.settiltangle` (:gh:`50096`)
146+
* :func:`unittest.findTestCases` (:gh:`50096`)
147+
* :func:`unittest.makeSuite` (:gh:`50096`)
148+
* :func:`unittest.getTestCaseNames` (:gh:`50096`)
149+
* :class:`webbrowser.MacOSX` (:gh:`86421`)
150+
151+
Pending Removal in Future Versions
152+
==================================
153+
154+
The following APIs were deprecated in earlier Python versions and will be removed,
155+
although there is currently no date scheduled for their removal.
156+
157+
* :class:`typing.Text` (:gh:`92332`)
158+
159+
* Currently Python accepts numeric literals immediately followed by keywords,
160+
for example ``0in x``, ``1or x``, ``0if 1else 2``. It allows confusing
161+
and ambiguous expressions like ``[0x1for x in y]`` (which can be
162+
interpreted as ``[0x1 for x in y]`` or ``[0x1f or x in y]``).
163+
A syntax warning is raised if the numeric literal is
164+
immediately followed by one of keywords :keyword:`and`, :keyword:`else`,
165+
:keyword:`for`, :keyword:`if`, :keyword:`in`, :keyword:`is` and :keyword:`or`.
166+
In a future release it will be changed to a syntax error. (:gh:`87999`)
167+
113168

114169
Removed
115170
=======

0 commit comments

Comments
 (0)
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