Skip to content

Commit 309a9cf

Browse files
committed
Add deprecation notes in more places!
1 parent fd67e0a commit 309a9cf

File tree

3 files changed

+16
-2
lines changed

3 files changed

+16
-2
lines changed

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

+7
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,13 @@
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+
411
* :mod:`argparse`: The *type*, *choices*, and *metavar* parameters
512
of :class:`!argparse.BooleanOptionalAction` are deprecated
613
and will be removed in 3.14.

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

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

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

613
* The undocumented :func:`!ctypes.SetPointerType` function

Doc/reference/datamodel.rst

+2-2
Original file line numberDiff line numberDiff line change
@@ -1030,8 +1030,8 @@ this approach.
10301030
.. deprecated-removed:: 3.12 3.14
10311031
Setting :attr:`!__loader__` on a module while failing to set
10321032
:attr:`!__spec__.loader` is deprecated. In Python 3.14,
1033-
:attr:`!module.__loader__` will cease to be set or taken into
1034-
consideration by the import system or the standard library.
1033+
:attr:`!__loader__` will cease to be set or taken into consideration by
1034+
the import system or the standard library.
10351035

10361036
.. attribute:: module.__path__
10371037

0 commit comments

Comments
 (0)