Skip to content

Commit 08c3c91

Browse files
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 <[email protected]> Co-authored-by: Petr Viktorin <[email protected]> (cherry picked from commit e19c2b9) Co-authored-by: C.A.M. Gerlach <[email protected]>
1 parent 4fc042f commit 08c3c91

File tree

1 file changed

+43
-20
lines changed

1 file changed

+43
-20
lines changed

Doc/whatsnew/3.11.rst

Lines changed: 43 additions & 20 deletions
Original file line numberDiff line numberDiff line change
@@ -1847,33 +1847,56 @@ and will be removed in Python 3.12.
18471847
C APIs pending removal are
18481848
:ref:`listed separately <whatsnew311-c-api-pending-removal>`.
18491849

1850-
* :class:`pkgutil.ImpImporter`
1851-
* :class:`pkgutil.ImpLoader`
1852-
* :envvar:`PYTHONTHREADDEBUG`
1850+
* The :mod:`asynchat` module
1851+
* The :mod:`asyncore` module
1852+
* The :ref:`entire distutils package <distutils-deprecated>`
1853+
* The :mod:`imp` module
1854+
* The :class:`typing.io <typing.IO>` namespace
1855+
* The :class:`typing.re <typing.Pattern>` namespace
1856+
* :func:`!cgi.log`
18531857
* :func:`importlib.find_loader`
1854-
* :func:`importlib.util.module_for_loader`
1855-
* :func:`importlib.util.set_loader_wrapper`
1856-
* :func:`importlib.util.set_package_wrapper`
18571858
* :meth:`importlib.abc.Loader.module_repr`
1858-
* :meth:`importlib.abc.Loadermodule_repr`
1859-
* :meth:`importlib.abc.MetaPathFinder.find_module`
18601859
* :meth:`importlib.abc.MetaPathFinder.find_module`
18611860
* :meth:`importlib.abc.PathEntryFinder.find_loader`
18621861
* :meth:`importlib.abc.PathEntryFinder.find_module`
1863-
* :meth:`importlib.machinery.BuiltinImporter.find_module`
1864-
* :meth:`importlib.machinery.BuiltinLoader.module_repr`
1865-
* :meth:`importlib.machinery.FileFinder.find_loader`
1866-
* :meth:`importlib.machinery.FileFinder.find_module`
1867-
* :meth:`importlib.machinery.FrozenImporter.find_module`
1868-
* :meth:`importlib.machinery.FrozenLoader.module_repr`
1862+
* :meth:`!importlib.machinery.BuiltinImporter.find_module`
1863+
* :meth:`!importlib.machinery.BuiltinLoader.module_repr`
1864+
* :meth:`!importlib.machinery.FileFinder.find_loader`
1865+
* :meth:`!importlib.machinery.FileFinder.find_module`
1866+
* :meth:`!importlib.machinery.FrozenImporter.find_module`
1867+
* :meth:`!importlib.machinery.FrozenLoader.module_repr`
18691868
* :meth:`importlib.machinery.PathFinder.find_module`
1870-
* :meth:`importlib.machinery.WindowsRegistryFinder.find_module`
1869+
* :meth:`!importlib.machinery.WindowsRegistryFinder.find_module`
1870+
* :func:`importlib.util.module_for_loader`
1871+
* :func:`!importlib.util.set_loader_wrapper`
1872+
* :func:`!importlib.util.set_package_wrapper`
1873+
* :class:`pkgutil.ImpImporter`
1874+
* :class:`pkgutil.ImpLoader`
18711875
* :meth:`pathlib.Path.link_to`
1872-
* The entire :ref:`distutils namespace <distutils-deprecated>`
1873-
* :func:`cgi.log`
1874-
* :func:`sqlite3.OptimizedUnicode`
1875-
* :func:`sqlite3.enable_shared_cache`
1876-
1876+
* :func:`!sqlite3.enable_shared_cache`
1877+
* :func:`!sqlite3.OptimizedUnicode`
1878+
* :envvar:`PYTHONTHREADDEBUG` environment variable
1879+
* The following deprecated aliases in :mod:`unittest`:
1880+
1881+
============================ =============================== ===============
1882+
Deprecated alias Method Name Deprecated in
1883+
============================ =============================== ===============
1884+
``failUnless`` :meth:`.assertTrue` 3.1
1885+
``failIf`` :meth:`.assertFalse` 3.1
1886+
``failUnlessEqual`` :meth:`.assertEqual` 3.1
1887+
``failIfEqual`` :meth:`.assertNotEqual` 3.1
1888+
``failUnlessAlmostEqual`` :meth:`.assertAlmostEqual` 3.1
1889+
``failIfAlmostEqual`` :meth:`.assertNotAlmostEqual` 3.1
1890+
``failUnlessRaises`` :meth:`.assertRaises` 3.1
1891+
``assert_`` :meth:`.assertTrue` 3.2
1892+
``assertEquals`` :meth:`.assertEqual` 3.2
1893+
``assertNotEquals`` :meth:`.assertNotEqual` 3.2
1894+
``assertAlmostEquals`` :meth:`.assertAlmostEqual` 3.2
1895+
``assertNotAlmostEquals`` :meth:`.assertNotAlmostEqual` 3.2
1896+
``assertRegexpMatches`` :meth:`.assertRegex` 3.2
1897+
``assertRaisesRegexp`` :meth:`.assertRaisesRegex` 3.2
1898+
``assertNotRegexpMatches`` :meth:`.assertNotRegex` 3.5
1899+
============================ =============================== ===============
18771900

18781901
.. _whatsnew311-removed:
18791902
.. _whatsnew311-python-api-removed:

0 commit comments

Comments
 (0)