]> git.ipfire.org Git - thirdparty/Python/cpython.git/commitdiff
Postpone `module.__loader__` deprecation to Python 3.16 (#126482)
authorHugo van Kemenade <1324225+hugovk@users.noreply.github.com>
Sun, 10 Nov 2024 00:48:33 +0000 (02:48 +0200)
committerGitHub <noreply@github.com>
Sun, 10 Nov 2024 00:48:33 +0000 (16:48 -0800)
Doc/deprecations/pending-removal-in-3.14.rst
Doc/deprecations/pending-removal-in-3.16.rst
Doc/reference/datamodel.rst

index 1904465b85650690634d4a0ccb3a64dc563f2da7..6159fa4884828563ce7c7dd5408207d952fba5f4 100644 (file)
@@ -1,13 +1,6 @@
 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
   of :class:`!argparse.BooleanOptionalAction` are deprecated
   and will be removed in 3.14.
index fac500d34742ca753708e95e75bb3c79adae95ff..6f6954b783a1aebc07e7527d8b51243b0d0bfa77 100644 (file)
@@ -1,6 +1,13 @@
 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`:
 
   * The ``'u'`` format code (:c:type:`wchar_t`)
index 41133b92ed88ec1c564cf6de134ca8b1d8477e5b..66b836eaf0008aea26a1e618eecac3f4fab4fd81 100644 (file)
@@ -1028,9 +1028,9 @@ this approach.
       using the :class:`types.ModuleType` constructor.
       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
-      :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
       the import system or the standard library.