@@ -1722,95 +1722,98 @@ This section lists Python APIs that have been removed in Python 3.12.
1722
1722
1723
1723
Removed C APIs are :ref: `listed separately <whatsnew311-c-api-removed >`.
1724
1724
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 `.)
1727
1741
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:
1731
1744
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 `
1734
1749
1735
1750
The :func: `binascii.crc_hqx ` function remains available.
1736
1751
1737
1752
(Contributed by Victor Stinner in :issue: `45085 `.)
1738
1753
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.
1740
1755
Use ``bdist_wheel `` (wheel packages) instead.
1741
1756
(Contributed by Hugo van Kemenade in :issue: `45124 `.)
1742
1757
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
1750
1759
:class: `xml.dom.pulldom.DOMEventStream `, :class: `wsgiref.util.FileWrapper `
1751
1760
and :class: `fileinput.FileInput `, deprecated since Python 3.9.
1752
1761
(Contributed by Hugo van Kemenade in :issue: `45132 `.)
1753
1762
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.
1764
1771
(Contributed by Dong-hee Na and Serhiy Storchaka in :issue: `44235 `.)
1765
1772
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
-
1779
1773
* Removed from the :mod: `inspect ` module:
1780
1774
1781
- * the `` getargspec ` ` function, deprecated since Python 3.0;
1775
+ * The :func: ` ! getargspec ` function, deprecated since Python 3.0;
1782
1776
use :func: `inspect.signature ` or :func: `inspect.getfullargspec ` instead.
1783
1777
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.
1787
1781
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.
1792
1786
1793
1787
(Contributed by Hugo van Kemenade in :issue: `45320 `.)
1794
1788
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 `,
1800
1791
because it was not used and added by mistake in previous versions.
1801
1792
(Contributed by Nikita Sobolev in :issue: `46483 `.)
1802
1793
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."
1807
1809
(Contributed by Victor Stinner in :issue: `46852 `.)
1808
1810
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 )
1811
1813
have been removed.
1812
1814
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
1814
1817
of ``Tools/scripts `` and is `being developed independently
1815
1818
<https://gitlab.com/warsaw/pynche/-/tree/main> `_ from the Python source tree.
1816
1819
0 commit comments