From 7dd1f62a4a22d6e2555b131344a40fdb376a5bff Mon Sep 17 00:00:00 2001 From: Stan Ulbrych Date: Sun, 21 Jun 2026 11:36:33 +0100 Subject: [PATCH] Remove removed things from 'Pending removal in Python 3.16' --- Doc/deprecations/pending-removal-in-3.16.rst | 63 -------------------- 1 file changed, 63 deletions(-) diff --git a/Doc/deprecations/pending-removal-in-3.16.rst b/Doc/deprecations/pending-removal-in-3.16.rst index 5a28cc766a95961..9b44561e8ec4001 100644 --- a/Doc/deprecations/pending-removal-in-3.16.rst +++ b/Doc/deprecations/pending-removal-in-3.16.rst @@ -13,23 +13,8 @@ Pending removal in Python 3.16 is deprecated. In Python 3.16, :attr:`!__package__` will cease to be taken into consideration by the import system or standard library. (:gh:`97879`) -* The bundled copy of ``libmpdec``. - -* :mod:`array`: - - * The ``'u'`` format code (:c:type:`wchar_t`) - has been deprecated in documentation since Python 3.3 - and at runtime since Python 3.13. - Use the ``'w'`` format code (:c:type:`Py_UCS4`) - for Unicode characters instead. - * :mod:`asyncio`: - * :func:`!asyncio.iscoroutinefunction` is deprecated - and will be removed in Python 3.16; - use :func:`inspect.iscoroutinefunction` instead. - (Contributed by Jiahao Li and Kumar Aditya in :gh:`122875`.) - * :mod:`asyncio` policy system is deprecated and will be removed in Python 3.16. In particular, the following classes and functions are deprecated: @@ -62,51 +47,3 @@ Pending removal in Python 3.16 Use ``not x`` instead for the logical negation of a Boolean. In the rare case that you need the bitwise inversion of the underlying integer, convert to ``int`` explicitly (``~int(x)``). - -* :mod:`functools`: - - * Calling the Python implementation of :func:`functools.reduce` with *function* - or *sequence* as keyword arguments has been deprecated since Python 3.14. - -* :mod:`logging`: - - * Support for custom logging handlers with the *strm* argument is deprecated - and scheduled for removal in Python 3.16. Define handlers with the *stream* - argument instead. (Contributed by Mariusz Felisiak in :gh:`115032`.) - -* :mod:`mimetypes`: - - * Valid extensions start with a '.' or are empty for - :meth:`mimetypes.MimeTypes.add_type`. - Undotted extensions are deprecated and will - raise a :exc:`ValueError` in Python 3.16. - (Contributed by Hugo van Kemenade in :gh:`75223`.) - -* :mod:`shutil`: - - * The :class:`!ExecError` exception - has been deprecated since Python 3.14. - It has not been used by any function in :mod:`!shutil` since Python 3.4, - and is now an alias of :exc:`RuntimeError`. - -* :mod:`symtable`: - - * The :meth:`!symtable.Class.get_methods` method - has been deprecated since Python 3.14. - -* :mod:`sys`: - - * The :func:`!_enablelegacywindowsfsencoding` function - has been deprecated since Python 3.13. - Use the :envvar:`PYTHONLEGACYWINDOWSFSENCODING` environment variable instead. - -* :mod:`sysconfig`: - - * The :func:`!sysconfig.expand_makefile_vars` function - has been deprecated since Python 3.14. - Use the ``vars`` argument of :func:`sysconfig.get_paths` instead. - -* :mod:`tarfile`: - - * The undocumented and unused :attr:`!TarInfo.tarfile` attribute - has been deprecated since Python 3.13.