2024-10-15 09:39:15 +02:00
|
|
|
Pending removal in Python 3.16
|
2024-07-19 15:57:14 +02:00
|
|
|
------------------------------
|
|
|
|
|
2024-11-10 01:48:33 +01:00
|
|
|
* The import system:
|
|
|
|
|
|
|
|
* Setting :attr:`~module.__loader__` on a module while
|
|
|
|
failing to set :attr:`__spec__.loader <importlib.machinery.ModuleSpec.loader>`
|
|
|
|
is deprecated. In Python 3.16, :attr:`!__loader__` will cease to be set or
|
|
|
|
taken into consideration by the import system or the standard library.
|
|
|
|
|
2024-07-27 13:17:54 +02:00
|
|
|
* :mod:`array`:
|
|
|
|
|
2024-09-16 19:03:46 +02:00
|
|
|
* 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.
|
|
|
|
|
2024-09-28 00:25:33 +02:00
|
|
|
* :mod:`asyncio`:
|
|
|
|
|
2024-10-15 09:39:15 +02:00
|
|
|
* :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:`builtins`:
|
|
|
|
|
|
|
|
* Bitwise inversion on boolean types, ``~True`` or ``~False``
|
|
|
|
has been deprecated since Python 3.12,
|
|
|
|
as it produces surprising and unintuitive results (``-2`` and ``-1``).
|
|
|
|
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)``).
|
2024-09-28 00:25:33 +02:00
|
|
|
|
2024-09-16 19:03:46 +02:00
|
|
|
* :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`.
|
2024-08-25 21:24:44 +02:00
|
|
|
|
2024-07-27 13:17:54 +02:00
|
|
|
* :mod:`symtable`:
|
2024-08-21 02:39:24 +02:00
|
|
|
|
2024-09-16 19:03:46 +02:00
|
|
|
* The :meth:`Class.get_methods <symtable.Class.get_methods>` method
|
|
|
|
has been deprecated since Python 3.14.
|
|
|
|
|
|
|
|
* :mod:`sys`:
|
|
|
|
|
|
|
|
* The :func:`~sys._enablelegacywindowsfsencoding` function
|
|
|
|
has been deprecated since Python 3.13.
|
|
|
|
Use the :envvar:`PYTHONLEGACYWINDOWSFSENCODING` environment variable instead.
|
|
|
|
|
|
|
|
* :mod:`tarfile`:
|
2024-08-21 02:39:24 +02:00
|
|
|
|
2024-09-16 19:03:46 +02:00
|
|
|
* The undocumented and unused :attr:`!TarFile.tarfile` attribute
|
|
|
|
has been deprecated since Python 3.13.
|