@@ -1734,95 +1734,98 @@ This section lists Python APIs that have been removed in Python 3.12.
1734
1734
1735
1735
Removed C APIs are :ref: `listed separately <whatsnew311-c-api-removed >`.
1736
1736
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 `.)
1739
1753
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:
1743
1756
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 `
1746
1761
1747
1762
The :func: `binascii.crc_hqx ` function remains available.
1748
1763
1749
1764
(Contributed by Victor Stinner in :issue: `45085 `.)
1750
1765
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.
1752
1767
Use ``bdist_wheel `` (wheel packages) instead.
1753
1768
(Contributed by Hugo van Kemenade in :issue: `45124 `.)
1754
1769
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
1762
1771
:class: `xml.dom.pulldom.DOMEventStream `, :class: `wsgiref.util.FileWrapper `
1763
1772
and :class: `fileinput.FileInput `, deprecated since Python 3.9.
1764
1773
(Contributed by Hugo van Kemenade in :issue: `45132 `.)
1765
1774
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.
1776
1783
(Contributed by Dong-hee Na and Serhiy Storchaka in :issue: `44235 `.)
1777
1784
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
-
1791
1785
* Removed from the :mod: `inspect ` module:
1792
1786
1793
- * the `` getargspec ` ` function, deprecated since Python 3.0;
1787
+ * The :func: ` ! getargspec ` function, deprecated since Python 3.0;
1794
1788
use :func: `inspect.signature ` or :func: `inspect.getfullargspec ` instead.
1795
1789
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.
1799
1793
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.
1804
1798
1805
1799
(Contributed by Hugo van Kemenade in :issue: `45320 `.)
1806
1800
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 `,
1812
1803
because it was not used and added by mistake in previous versions.
1813
1804
(Contributed by Nikita Sobolev in :issue: `46483 `.)
1814
1805
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."
1819
1821
(Contributed by Victor Stinner in :issue: `46852 `.)
1820
1822
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 )
1823
1825
have been removed.
1824
1826
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
1826
1829
of ``Tools/scripts `` and is `being developed independently
1827
1830
<https://gitlab.com/warsaw/pynche/-/tree/main> `_ from the Python source tree.
1828
1831
0 commit comments