Skip to content

Commit 1fc5262

Browse files
hugovkpicnixz
authored andcommitted
Postpone module.__loader__ deprecation to Python 3.16 (python#126482)
1 parent b40459f commit 1fc5262

File tree

3 files changed

+9
-9
lines changed

3 files changed

+9
-9
lines changed

Doc/deprecations/pending-removal-in-3.14.rst

-7
Original file line numberDiff line numberDiff line change
@@ -1,13 +1,6 @@
11
Pending removal in Python 3.14
22
------------------------------
33

4-
* The import system:
5-
6-
* Setting :attr:`~module.__loader__` on a module while
7-
failing to set :attr:`__spec__.loader <importlib.machinery.ModuleSpec.loader>`
8-
is deprecated. In Python 3.14, :attr:`!__loader__` will cease to be set or
9-
taken into consideration by the import system or the standard library.
10-
114
* :mod:`argparse`: The *type*, *choices*, and *metavar* parameters
125
of :class:`!argparse.BooleanOptionalAction` are deprecated
136
and will be removed in 3.14.

Doc/deprecations/pending-removal-in-3.16.rst

+7
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,13 @@
11
Pending removal in Python 3.16
22
------------------------------
33

4+
* The import system:
5+
6+
* Setting :attr:`~module.__loader__` on a module while
7+
failing to set :attr:`__spec__.loader <importlib.machinery.ModuleSpec.loader>`
8+
is deprecated. In Python 3.16, :attr:`!__loader__` will cease to be set or
9+
taken into consideration by the import system or the standard library.
10+
411
* :mod:`array`:
512

613
* The ``'u'`` format code (:c:type:`wchar_t`)

Doc/reference/datamodel.rst

+2-2
Original file line numberDiff line numberDiff line change
@@ -1028,9 +1028,9 @@ this approach.
10281028
using the :class:`types.ModuleType` constructor.
10291029
Previously the attribute was optional.
10301030

1031-
.. deprecated-removed:: 3.12 3.14
1031+
.. deprecated-removed:: 3.12 3.16
10321032
Setting :attr:`!__loader__` on a module while failing to set
1033-
:attr:`!__spec__.loader` is deprecated. In Python 3.14,
1033+
:attr:`!__spec__.loader` is deprecated. In Python 3.16,
10341034
:attr:`!__loader__` will cease to be set or taken into consideration by
10351035
the import system or the standard library.
10361036

0 commit comments

Comments
 (0)