mirror of https://github.com/python/cpython
Postpone `module.__loader__` deprecation to Python 3.16 (#126482)
This commit is contained in:
parent
9d08423b6e
commit
450db61a78
|
@ -1,13 +1,6 @@
|
||||||
Pending removal in Python 3.14
|
Pending removal in Python 3.14
|
||||||
------------------------------
|
------------------------------
|
||||||
|
|
||||||
* 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.14, :attr:`!__loader__` will cease to be set or
|
|
||||||
taken into consideration by the import system or the standard library.
|
|
||||||
|
|
||||||
* :mod:`argparse`: The *type*, *choices*, and *metavar* parameters
|
* :mod:`argparse`: The *type*, *choices*, and *metavar* parameters
|
||||||
of :class:`!argparse.BooleanOptionalAction` are deprecated
|
of :class:`!argparse.BooleanOptionalAction` are deprecated
|
||||||
and will be removed in 3.14.
|
and will be removed in 3.14.
|
||||||
|
|
|
@ -1,6 +1,13 @@
|
||||||
Pending removal in Python 3.16
|
Pending removal in Python 3.16
|
||||||
------------------------------
|
------------------------------
|
||||||
|
|
||||||
|
* 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.
|
||||||
|
|
||||||
* :mod:`array`:
|
* :mod:`array`:
|
||||||
|
|
||||||
* The ``'u'`` format code (:c:type:`wchar_t`)
|
* The ``'u'`` format code (:c:type:`wchar_t`)
|
||||||
|
|
|
@ -1028,9 +1028,9 @@ this approach.
|
||||||
using the :class:`types.ModuleType` constructor.
|
using the :class:`types.ModuleType` constructor.
|
||||||
Previously the attribute was optional.
|
Previously the attribute was optional.
|
||||||
|
|
||||||
.. deprecated-removed:: 3.12 3.14
|
.. deprecated-removed:: 3.12 3.16
|
||||||
Setting :attr:`!__loader__` on a module while failing to set
|
Setting :attr:`!__loader__` on a module while failing to set
|
||||||
:attr:`!__spec__.loader` is deprecated. In Python 3.14,
|
:attr:`!__spec__.loader` is deprecated. In Python 3.16,
|
||||||
:attr:`!__loader__` will cease to be set or taken into consideration by
|
:attr:`!__loader__` will cease to be set or taken into consideration by
|
||||||
the import system or the standard library.
|
the import system or the standard library.
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue