Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

GH-92308 What's New: list pending removals in 3.13 and future versions #92562

Merged
merged 7 commits into from
Jun 6, 2022
Merged
Changes from 5 commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
55 changes: 55 additions & 0 deletions Doc/whatsnew/3.12.rst
Original file line number Diff line number Diff line change
Expand Up @@ -98,6 +98,61 @@ 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.

Removed modules:
hugovk marked this conversation as resolved.
Show resolved Hide resolved

* :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`)

Other removed APIs:
ezio-melotti marked this conversation as resolved.
Show resolved Hide resolved

* :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`)
ezio-melotti marked this conversation as resolved.
Show resolved Hide resolved

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 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`)
ezio-melotti marked this conversation as resolved.
Show resolved Hide resolved


Removed
=======
Expand Down