Skip to content

Commit 7cdea80

Browse files
miss-islingtonCAM-Gerlach
authored andcommitted
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 c2cb04e commit 7cdea80

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
@@ -1734,95 +1734,98 @@ This section lists Python APIs that have been removed in Python 3.12.
17341734

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

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

1740-
* The ``binhex`` module, deprecated in Python 3.9, is now removed.
1741-
The following :mod:`binascii` functions, deprecated in Python 3.9, are now
1742-
also removed:
1754+
* Removed the :mod:`!binhex` module, deprecated in Python 3.9.
1755+
Also removed the related, similarly-deprecated :mod:`binascii` functions:
17431756

1744-
* ``a2b_hqx()``, ``b2a_hqx()``;
1745-
* ``rlecode_hqx()``, ``rledecode_hqx()``.
1757+
* :func:`!binascii.a2b_hqx`
1758+
* :func:`!binascii.b2a_hqx`
1759+
* :func:`!binascii.rlecode_hqx`
1760+
* :func:`!binascii.rldecode_hqx`
17461761

17471762
The :func:`binascii.crc_hqx` function remains available.
17481763

17491764
(Contributed by Victor Stinner in :issue:`45085`.)
17501765

1751-
* The distutils ``bdist_msi`` command, deprecated in Python 3.9, is now removed.
1766+
* Removed the :mod:`distutils` ``bdist_msi`` command deprecated in Python 3.9.
17521767
Use ``bdist_wheel`` (wheel packages) instead.
17531768
(Contributed by Hugo van Kemenade in :issue:`45124`.)
17541769

1755-
* Due to significant security concerns, the *reuse_address* parameter of
1756-
:meth:`asyncio.loop.create_datagram_endpoint`, disabled in Python 3.9, is
1757-
now entirely removed. This is because of the behavior of the socket option
1758-
``SO_REUSEADDR`` in UDP.
1759-
(Contributed by Hugo van Kemenade in :issue:`45129`.)
1760-
1761-
* Removed :meth:`__getitem__` methods of
1770+
* Removed the :meth:`~object.__getitem__` methods of
17621771
:class:`xml.dom.pulldom.DOMEventStream`, :class:`wsgiref.util.FileWrapper`
17631772
and :class:`fileinput.FileInput`, deprecated since Python 3.9.
17641773
(Contributed by Hugo van Kemenade in :issue:`45132`.)
17651774

1766-
* The following deprecated functions and methods are removed in the :mod:`gettext`
1767-
module: :func:`~gettext.lgettext`, :func:`~gettext.ldgettext`,
1768-
:func:`~gettext.lngettext` and :func:`~gettext.ldngettext`.
1769-
1770-
Function :func:`~gettext.bind_textdomain_codeset`, methods
1771-
:meth:`~gettext.NullTranslations.output_charset` and
1772-
:meth:`~gettext.NullTranslations.set_output_charset`, and the *codeset*
1773-
parameter of functions :func:`~gettext.translation` and
1774-
:func:`~gettext.install` are also removed, since they are only used for
1775-
the ``l*gettext()`` functions.
1775+
* Removed the deprecated :mod:`gettext` functions
1776+
:func:`!lgettext`, :func:`!ldgettext`,
1777+
:func:`!lngettext` and :func:`!ldngettext`.
1778+
Also removed the :func:`!bind_textdomain_codeset` function,
1779+
the :meth:`!NullTranslations.output_charset` and
1780+
:meth:`!NullTranslations.set_output_charset` methods,
1781+
and the *codeset* parameter of :func:`!translation` and :func:`!install`,
1782+
since they are only used for the :func:`!l*gettext` functions.
17761783
(Contributed by Dong-hee Na and Serhiy Storchaka in :issue:`44235`.)
17771784

1778-
* The :func:`@asyncio.coroutine <asyncio.coroutine>` :term:`decorator` enabling
1779-
legacy generator-based coroutines to be compatible with async/await code.
1780-
The function has been deprecated since Python 3.8 and the removal was
1781-
initially scheduled for Python 3.10. Use :keyword:`async def` instead.
1782-
(Contributed by Illia Volochii in :issue:`43216`.)
1783-
1784-
* :class:`asyncio.coroutines.CoroWrapper` used for wrapping legacy
1785-
generator-based coroutine objects in the debug mode.
1786-
(Contributed by Illia Volochii in :issue:`43216`.)
1787-
1788-
* Removed the deprecated ``split()`` method of :class:`_tkinter.TkappType`.
1789-
(Contributed by Erlend E. Aasland in :issue:`38371`.)
1790-
17911785
* Removed from the :mod:`inspect` module:
17921786

1793-
* the ``getargspec`` function, deprecated since Python 3.0;
1787+
* The :func:`!getargspec` function, deprecated since Python 3.0;
17941788
use :func:`inspect.signature` or :func:`inspect.getfullargspec` instead.
17951789

1796-
* the ``formatargspec`` function, deprecated since Python 3.5;
1797-
use the :func:`inspect.signature` function and :class:`Signature` object
1798-
directly.
1790+
* The :func:`!formatargspec` function, deprecated since Python 3.5;
1791+
use the :func:`inspect.signature` function
1792+
or the :class:`inspect.Signature` object directly.
17991793

1800-
* the undocumented ``Signature.from_builtin`` and ``Signature.from_function``
1801-
functions, deprecated since Python 3.5; use the
1802-
:meth:`Signature.from_callable() <inspect.Signature.from_callable>` method
1803-
instead.
1794+
* The undocumented :meth:`!Signature.from_builtin`
1795+
and :meth:`!Signature.from_function` methods, deprecated since Python 3.5;
1796+
use the :meth:`Signature.from_callable() <inspect.Signature.from_callable>`
1797+
method instead.
18041798

18051799
(Contributed by Hugo van Kemenade in :issue:`45320`.)
18061800

1807-
* Remove namespace package support from unittest discovery. It was introduced in
1808-
Python 3.4 but has been broken since Python 3.7.
1809-
(Contributed by Inada Naoki in :issue:`23882`.)
1810-
1811-
* Remove ``__class_getitem__`` method from :class:`pathlib.PurePath`,
1801+
* Removed the :meth:`~object.__class_getitem__` method
1802+
from :class:`pathlib.PurePath`,
18121803
because it was not used and added by mistake in previous versions.
18131804
(Contributed by Nikita Sobolev in :issue:`46483`.)
18141805

1815-
* Remove the undocumented private ``float.__set_format__()`` method, previously
1816-
known as ``float.__setformat__()`` in Python 3.7. Its docstring said: "You
1817-
probably don't want to use this function. It exists mainly to be used in
1818-
Python's test suite."
1806+
* Removed the :class:`!MailmanProxy` class in the :mod:`smtpd` module,
1807+
as it is unusable without the external :mod:`!mailman` package.
1808+
(Contributed by Dong-hee Na in :issue:`35800`.)
1809+
1810+
* Removed the deprecated :meth:`!split` method of :class:`!_tkinter.TkappType`.
1811+
(Contributed by Erlend E. Aasland in :issue:`38371`.)
1812+
1813+
* Removed namespace package support from :mod:`unittest` discovery.
1814+
It was introduced in Python 3.4 but has been broken since Python 3.7.
1815+
(Contributed by Inada Naoki in :issue:`23882`.)
1816+
1817+
* Removed the undocumented private :meth:`!float.__set_format__()` method,
1818+
previously known as :meth:`!float.__setformat__()` in Python 3.7.
1819+
Its docstring said: "You probably don't want to use this function.
1820+
It exists mainly to be used in Python's test suite."
18191821
(Contributed by Victor Stinner in :issue:`46852`.)
18201822

1821-
* The ``--experimental-isolated-subinterpreters`` configure flag
1822-
(and corresponding ``EXPERIMENTAL_ISOLATED_SUBINTERPRETERS``)
1823+
* The :option:`!--experimental-isolated-subinterpreters` configure flag
1824+
(and corresponding :c:macro:`!EXPERIMENTAL_ISOLATED_SUBINTERPRETERS` macro)
18231825
have been removed.
18241826

1825-
* Pynche --- The Pythonically Natural Color and Hue Editor --- has been moved out
1827+
* `Pynche <https://pypi.org/project/pynche/>`_
1828+
--- The Pythonically Natural Color and Hue Editor --- has been moved out
18261829
of ``Tools/scripts`` and is `being developed independently
18271830
<https://gitlab.com/warsaw/pynche/-/tree/main>`_ from the Python source tree.
18281831

0 commit comments

Comments
 (0)