8000 [3.12] Postpone `module.__loader__` deprecation to Python 3.16 (GH-12… · python/cpython@61e6f09 · GitHub
[go: up one dir, main page]

Skip to content 10000

Commit 61e6f09

Browse files
[3.12] Postpone module.__loader__ deprecation to Python 3.16 (GH-126482) (#126637)
Postpone `module.__loader__` deprecation to Python 3.16 (GH-126482) (cherry picked from commit 450db61) Co-authored-by: Hugo van Kemenade <1324225+hugovk@users.noreply.github.com>
1 parent 7bb92ed commit 61e6f09

File tree

3 files changed

+9
-9
lines changed

3 files changed

+9
-9
lines changed

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

Lines changed: 0 additions & 7 deletions
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

Lines changed: 7 additions & 0 deletions
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
:class:`array.array` ``'u'`` type (:c:type:`wchar_t`):
613
use the ``'w'`` type instead (``Py_UCS4``).

Doc/reference/datamodel.rst

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1007,9 +1007,9 @@ this approach.
10071007
using the :class:`types.ModuleType` constructor.
10081008
Previously the attribute was optional.
10091009

1010-
.. deprecated-removed:: 3.12 3.14
1010+
.. deprecated-removed:: 3.12 3.16
10111011
Setting :attr:`!__loader__` on a module while failing to set
1012-
:attr:`!__spec__.loader` is deprecated. In Python 3.14,
1012+
:attr:`!__spec__.loader` is deprecated. In Python 3.16,
10131013
:attr:`!__loader__` will cease to be set or taken into consideration by
10141014
the import system or the standard library.
10151015

0 commit comments

Comments
 (0)
0