Skip to content

Commit e19c2b9

Browse files
CAM-GerlachJelleZijlstraencukou
authoredOct 24, 2022
gh-95913: Fix, sort & expand pending removal sect in 3.11 WhatsNew (GH-98583)
* Fix names/references of pending removal APIs * Sort list of APIs pending removal alphabetically * Add missing modules/submodules pending removal in 3.12 * Add table of unittest deprecated aliases to 3.11 What's New Co-authored-by: Jelle Zijlstra <jelle.zijlstra@gmail.com> Co-authored-by: Petr Viktorin <encukou@gmail.com>
1 parent f3f8b6f commit e19c2b9

File tree

1 file changed

+43
-20
lines changed

1 file changed

+43
-20
lines changed
 

‎Doc/whatsnew/3.11.rst

+43-20
Original file line numberDiff line numberDiff line change
@@ -1777,33 +1777,56 @@ and will be removed in Python 3.12.
17771777
C APIs pending removal are
17781778
:ref:`listed separately <whatsnew311-c-api-pending-removal>`.
17791779

1780-
* :class:`pkgutil.ImpImporter`
1781-
* :class:`pkgutil.ImpLoader`
1782-
* :envvar:`PYTHONTHREADDEBUG`
1780+
* The :mod:`asynchat` module
1781+
* The :mod:`asyncore` module
1782+
* The :ref:`entire distutils package <distutils-deprecated>`
1783+
* The :mod:`imp` module
1784+
* The :class:`typing.io <typing.IO>` namespace
1785+
* The :class:`typing.re <typing.Pattern>` namespace
1786+
* :func:`!cgi.log`
17831787
* :func:`importlib.find_loader`
1784-
* :func:`importlib.util.module_for_loader`
1785-
* :func:`importlib.util.set_loader_wrapper`
1786-
* :func:`importlib.util.set_package_wrapper`
17871788
* :meth:`importlib.abc.Loader.module_repr`
1788-
* :meth:`importlib.abc.Loadermodule_repr`
1789-
* :meth:`importlib.abc.MetaPathFinder.find_module`
17901789
* :meth:`importlib.abc.MetaPathFinder.find_module`
17911790
* :meth:`importlib.abc.PathEntryFinder.find_loader`
17921791
* :meth:`importlib.abc.PathEntryFinder.find_module`
1793-
* :meth:`importlib.machinery.BuiltinImporter.find_module`
1794-
* :meth:`importlib.machinery.BuiltinLoader.module_repr`
1795-
* :meth:`importlib.machinery.FileFinder.find_loader`
1796-
* :meth:`importlib.machinery.FileFinder.find_module`
1797-
* :meth:`importlib.machinery.FrozenImporter.find_module`
1798-
* :meth:`importlib.machinery.FrozenLoader.module_repr`
1792+
* :meth:`!importlib.machinery.BuiltinImporter.find_module`
1793+
* :meth:`!importlib.machinery.BuiltinLoader.module_repr`
1794+
* :meth:`!importlib.machinery.FileFinder.find_loader`
1795+
* :meth:`!importlib.machinery.FileFinder.find_module`
1796+
* :meth:`!importlib.machinery.FrozenImporter.find_module`
1797+
* :meth:`!importlib.machinery.FrozenLoader.module_repr`
17991798
* :meth:`importlib.machinery.PathFinder.find_module`
1800-
* :meth:`importlib.machinery.WindowsRegistryFinder.find_module`
1799+
* :meth:`!importlib.machinery.WindowsRegistryFinder.find_module`
1800+
* :func:`importlib.util.module_for_loader`
1801+
* :func:`!importlib.util.set_loader_wrapper`
1802+
* :func:`!importlib.util.set_package_wrapper`
1803+
* :class:`pkgutil.ImpImporter`
1804+
* :class:`pkgutil.ImpLoader`
18011805
* :meth:`pathlib.Path.link_to`
1802-
* The entire :ref:`distutils namespace <distutils-deprecated>`
1803-
* :func:`cgi.log`
1804-
* :func:`sqlite3.OptimizedUnicode`
1805-
* :func:`sqlite3.enable_shared_cache`
1806-
1806+
* :func:`!sqlite3.enable_shared_cache`
1807+
* :func:`!sqlite3.OptimizedUnicode`
1808+
* :envvar:`PYTHONTHREADDEBUG` environment variable
1809+
* The following deprecated aliases in :mod:`unittest`:
1810+
1811+
============================ =============================== ===============
1812+
Deprecated alias Method Name Deprecated in
1813+
============================ =============================== ===============
1814+
``failUnless`` :meth:`.assertTrue` 3.1
1815+
``failIf`` :meth:`.assertFalse` 3.1
1816+
``failUnlessEqual`` :meth:`.assertEqual` 3.1
1817+
``failIfEqual`` :meth:`.assertNotEqual` 3.1
1818+
``failUnlessAlmostEqual`` :meth:`.assertAlmostEqual` 3.1
1819+
``failIfAlmostEqual`` :meth:`.assertNotAlmostEqual` 3.1
1820+
``failUnlessRaises`` :meth:`.assertRaises` 3.1
1821+
``assert_`` :meth:`.assertTrue` 3.2
1822+
``assertEquals`` :meth:`.assertEqual` 3.2
1823+
``assertNotEquals`` :meth:`.assertNotEqual` 3.2
1824+
``assertAlmostEquals`` :meth:`.assertAlmostEqual` 3.2
1825+
``assertNotAlmostEquals`` :meth:`.assertNotAlmostEqual` 3.2
1826+
``assertRegexpMatches`` :meth:`.assertRegex` 3.2
1827+
``assertRaisesRegexp`` :meth:`.assertRaisesRegex` 3.2
1828+
``assertNotRegexpMatches`` :meth:`.assertNotRegex` 3.5
1829+
============================ =============================== ===============
18071830

18081831
.. _whatsnew311-removed:
18091832
.. _whatsnew311-python-api-removed:

0 commit comments

Comments
 (0)
Please sign in to comment.