Skip to content

Commit 5288f66

Browse files
gh-95913: Edit, xref & sort 3.11 WhatsNew Removed section (GH-98584)
(cherry picked from commit 8dbec4d) Co-authored-by: C.A.M. Gerlach <[email protected]>
1 parent 1beab50 commit 5288f66

File tree

1 file changed

+61
-58
lines changed

1 file changed

+61
-58
lines changed

Doc/whatsnew/3.11.rst

+61-58
Original file line numberDiff line numberDiff line change
@@ -1722,95 +1722,98 @@ This section lists Python APIs that have been removed in Python 3.12.
17221722

17231723
Removed C APIs are :ref:`listed separately <whatsnew311-c-api-removed>`.
17241724

1725-
* :class:`smtpd.MailmanProxy` is now removed as it is unusable without
1726-
an external module, ``mailman``. (Contributed by Dong-hee Na in :issue:`35800`.)
1725+
* Removed the :func:`[email protected]` :term:`decorator`
1726+
enabling legacy generator-based coroutines to be compatible with
1727+
:keyword:`async` / :keyword:`await` code.
1728+
The function has been deprecated since Python 3.8 and the removal was
1729+
initially scheduled for Python 3.10. Use :keyword:`async def` instead.
1730+
(Contributed by Illia Volochii in :issue:`43216`.)
1731+
1732+
* Removed :class:`!asyncio.coroutines.CoroWrapper` used for wrapping legacy
1733+
generator-based coroutine objects in the debug mode.
1734+
(Contributed by Illia Volochii in :issue:`43216`.)
1735+
1736+
* Due to significant security concerns, the *reuse_address* parameter of
1737+
:meth:`asyncio.loop.create_datagram_endpoint`, disabled in Python 3.9, is
1738+
now entirely removed. This is because of the behavior of the socket option
1739+
``SO_REUSEADDR`` in UDP.
1740+
(Contributed by Hugo van Kemenade in :issue:`45129`.)
17271741

1728-
* The ``binhex`` module, deprecated in Python 3.9, is now removed.
1729-
The following :mod:`binascii` functions, deprecated in Python 3.9, are now
1730-
also removed:
1742+
* Removed the :mod:`!binhex` module, deprecated in Python 3.9.
1743+
Also removed the related, similarly-deprecated :mod:`binascii` functions:
17311744

1732-
* ``a2b_hqx()``, ``b2a_hqx()``;
1733-
* ``rlecode_hqx()``, ``rledecode_hqx()``.
1745+
* :func:`!binascii.a2b_hqx`
1746+
* :func:`!binascii.b2a_hqx`
1747+
* :func:`!binascii.rlecode_hqx`
1748+
* :func:`!binascii.rldecode_hqx`
17341749

17351750
The :func:`binascii.crc_hqx` function remains available.
17361751

17371752
(Contributed by Victor Stinner in :issue:`45085`.)
17381753

1739-
* The distutils ``bdist_msi`` command, deprecated in Python 3.9, is now removed.
1754+
* Removed the :mod:`distutils` ``bdist_msi`` command deprecated in Python 3.9.
17401755
Use ``bdist_wheel`` (wheel packages) instead.
17411756
(Contributed by Hugo van Kemenade in :issue:`45124`.)
17421757

1743-
* Due to significant security concerns, the *reuse_address* parameter of
1744-
:meth:`asyncio.loop.create_datagram_endpoint`, disabled in Python 3.9, is
1745-
now entirely removed. This is because of the behavior of the socket option
1746-
``SO_REUSEADDR`` in UDP.
1747-
(Contributed by Hugo van Kemenade in :issue:`45129`.)
1748-
1749-
* Removed :meth:`__getitem__` methods of
1758+
* Removed the :meth:`~object.__getitem__` methods of
17501759
:class:`xml.dom.pulldom.DOMEventStream`, :class:`wsgiref.util.FileWrapper`
17511760
and :class:`fileinput.FileInput`, deprecated since Python 3.9.
17521761
(Contributed by Hugo van Kemenade in :issue:`45132`.)
17531762

1754-
* The following deprecated functions and methods are removed in the :mod:`gettext`
1755-
module: :func:`~gettext.lgettext`, :func:`~gettext.ldgettext`,
1756-
:func:`~gettext.lngettext` and :func:`~gettext.ldngettext`.
1757-
1758-
Function :func:`~gettext.bind_textdomain_codeset`, methods
1759-
:meth:`~gettext.NullTranslations.output_charset` and
1760-
:meth:`~gettext.NullTranslations.set_output_charset`, and the *codeset*
1761-
parameter of functions :func:`~gettext.translation` and
1762-
:func:`~gettext.install` are also removed, since they are only used for
1763-
the ``l*gettext()`` functions.
1763+
* Removed the deprecated :mod:`gettext` functions
1764+
:func:`!lgettext`, :func:`!ldgettext`,
1765+
:func:`!lngettext` and :func:`!ldngettext`.
1766+
Also removed the :func:`!bind_textdomain_codeset` function,
1767+
the :meth:`!NullTranslations.output_charset` and
1768+
:meth:`!NullTranslations.set_output_charset` methods,
1769+
and the *codeset* parameter of :func:`!translation` and :func:`!install`,
1770+
since they are only used for the :func:`!l*gettext` functions.
17641771
(Contributed by Dong-hee Na and Serhiy Storchaka in :issue:`44235`.)
17651772

1766-
* The :func:`@asyncio.coroutine <asyncio.coroutine>` :term:`decorator` enabling
1767-
legacy generator-based coroutines to be compatible with async/await code.
1768-
The function has been deprecated since Python 3.8 and the removal was
1769-
initially scheduled for Python 3.10. Use :keyword:`async def` instead.
1770-
(Contributed by Illia Volochii in :issue:`43216`.)
1771-
1772-
* :class:`asyncio.coroutines.CoroWrapper` used for wrapping legacy
1773-
generator-based coroutine objects in the debug mode.
1774-
(Contributed by Illia Volochii in :issue:`43216`.)
1775-
1776-
* Removed the deprecated ``split()`` method of :class:`_tkinter.TkappType`.
1777-
(Contributed by Erlend E. Aasland in :issue:`38371`.)
1778-
17791773
* Removed from the :mod:`inspect` module:
17801774

1781-
* the ``getargspec`` function, deprecated since Python 3.0;
1775+
* The :func:`!getargspec` function, deprecated since Python 3.0;
17821776
use :func:`inspect.signature` or :func:`inspect.getfullargspec` instead.
17831777

1784-
* the ``formatargspec`` function, deprecated since Python 3.5;
1785-
use the :func:`inspect.signature` function and :class:`Signature` object
1786-
directly.
1778+
* The :func:`!formatargspec` function, deprecated since Python 3.5;
1779+
use the :func:`inspect.signature` function
1780+
or the :class:`inspect.Signature` object directly.
17871781

1788-
* the undocumented ``Signature.from_builtin`` and ``Signature.from_function``
1789-
functions, deprecated since Python 3.5; use the
1790-
:meth:`Signature.from_callable() <inspect.Signature.from_callable>` method
1791-
instead.
1782+
* The undocumented :meth:`!Signature.from_builtin`
1783+
and :meth:`!Signature.from_function` methods, deprecated since Python 3.5;
1784+
use the :meth:`Signature.from_callable() <inspect.Signature.from_callable>`
1785+
method instead.
17921786

17931787
(Contributed by Hugo van Kemenade in :issue:`45320`.)
17941788

1795-
* Remove namespace package support from unittest discovery. It was introduced in
1796-
Python 3.4 but has been broken since Python 3.7.
1797-
(Contributed by Inada Naoki in :issue:`23882`.)
1798-
1799-
* Remove ``__class_getitem__`` method from :class:`pathlib.PurePath`,
1789+
* Removed the :meth:`~object.__class_getitem__` method
1790+
from :class:`pathlib.PurePath`,
18001791
because it was not used and added by mistake in previous versions.
18011792
(Contributed by Nikita Sobolev in :issue:`46483`.)
18021793

1803-
* Remove the undocumented private ``float.__set_format__()`` method, previously
1804-
known as ``float.__setformat__()`` in Python 3.7. Its docstring said: "You
1805-
probably don't want to use this function. It exists mainly to be used in
1806-
Python's test suite."
1794+
* Removed the :class:`!MailmanProxy` class in the :mod:`smtpd` module,
1795+
as it is unusable without the external :mod:`!mailman` package.
1796+
(Contributed by Dong-hee Na in :issue:`35800`.)
1797+
1798+
* Removed the deprecated :meth:`!split` method of :class:`!_tkinter.TkappType`.
1799+
(Contributed by Erlend E. Aasland in :issue:`38371`.)
1800+
1801+
* Removed namespace package support from :mod:`unittest` discovery.
1802+
It was introduced in Python 3.4 but has been broken since Python 3.7.
1803+
(Contributed by Inada Naoki in :issue:`23882`.)
1804+
1805+
* Removed the undocumented private :meth:`!float.__set_format__()` method,
1806+
previously known as :meth:`!float.__setformat__()` in Python 3.7.
1807+
Its docstring said: "You probably don't want to use this function.
1808+
It exists mainly to be used in Python's test suite."
18071809
(Contributed by Victor Stinner in :issue:`46852`.)
18081810

1809-
* The ``--experimental-isolated-subinterpreters`` configure flag
1810-
(and corresponding ``EXPERIMENTAL_ISOLATED_SUBINTERPRETERS``)
1811+
* The :option:`!--experimental-isolated-subinterpreters` configure flag
1812+
(and corresponding :c:macro:`!EXPERIMENTAL_ISOLATED_SUBINTERPRETERS` macro)
18111813
have been removed.
18121814

1813-
* Pynche --- The Pythonically Natural Color and Hue Editor --- has been moved out
1815+
* `Pynche <https://pypi.org/project/pynche/>`_
1816+
--- The Pythonically Natural Color and Hue Editor --- has been moved out
18141817
of ``Tools/scripts`` and is `being developed independently
18151818
<https://gitlab.com/warsaw/pynche/-/tree/main>`_ from the Python source tree.
18161819

0 commit comments

Comments
 (0)