summaryrefslogtreecommitdiffstats
path: root/Doc/deprecations
diff options
context:
space:
mode:
authorAlex Waygood <Alex.Waygood@Gmail.com>2024-10-09 10:53:57 (GMT)
committerGitHub <noreply@github.com>2024-10-09 10:53:57 (GMT)
commit3024b16d51bb7f74177c5a5038cc9a56fd2b26bd (patch)
tree2fb75d1941753cf3375c95723b16086a3969ac23 /Doc/deprecations
parent7a303fc78a6dbd1b4c01f8a2b14ddcae29f4271b (diff)
downloadcpython-3024b16d51bb7f74177c5a5038cc9a56fd2b26bd.zip
cpython-3024b16d51bb7f74177c5a5038cc9a56fd2b26bd.tar.gz
cpython-3024b16d51bb7f74177c5a5038cc9a56fd2b26bd.tar.bz2
gh-101100: Consolidate documentation on `ModuleType` attributes (#124709)
Co-authored-by: Hugo van Kemenade <1324225+hugovk@users.noreply.github.com> Co-authored-by: Barry Warsaw <barry@python.org> Co-authored-by: Jelle Zijlstra <jelle.zijlstra@gmail.com>
Diffstat (limited to 'Doc/deprecations')
-rw-r--r--Doc/deprecations/pending-removal-in-3.14.rst7
-rw-r--r--Doc/deprecations/pending-removal-in-3.15.rst15
2 files changed, 19 insertions, 3 deletions
diff --git a/Doc/deprecations/pending-removal-in-3.14.rst b/Doc/deprecations/pending-removal-in-3.14.rst
index 452d664..de30f46 100644
--- a/Doc/deprecations/pending-removal-in-3.14.rst
+++ b/Doc/deprecations/pending-removal-in-3.14.rst
@@ -1,6 +1,13 @@
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.
diff --git a/Doc/deprecations/pending-removal-in-3.15.rst b/Doc/deprecations/pending-removal-in-3.15.rst
index b921b4f..a55fb6b 100644
--- a/Doc/deprecations/pending-removal-in-3.15.rst
+++ b/Doc/deprecations/pending-removal-in-3.15.rst
@@ -1,6 +1,18 @@
Pending Removal in Python 3.15
------------------------------
+* The import system:
+
+ * Setting :attr:`~module.__cached__` on a module while
+ failing to set :attr:`__spec__.cached <importlib.machinery.ModuleSpec.cached>`
+ is deprecated. In Python 3.15, :attr:`!__cached__` will cease to be set or
+ take into consideration by the import system or standard library. (:gh:`97879`)
+
+ * Setting :attr:`~module.__package__` on a module while
+ failing to set :attr:`__spec__.parent <importlib.machinery.ModuleSpec.parent>`
+ is deprecated. In Python 3.15, :attr:`!__package__` will cease to be set or
+ take into consideration by the import system or standard library. (:gh:`97879`)
+
* :mod:`ctypes`:
* The undocumented :func:`!ctypes.SetPointerType` function
@@ -17,9 +29,6 @@ Pending Removal in Python 3.15
* The :option:`!--cgi` flag to the :program:`python -m http.server`
command-line interface has been deprecated since Python 3.13.
-* :mod:`importlib`: ``__package__`` and ``__cached__`` will cease to be set or
- taken into consideration by the import system (:gh:`97879`).
-
* :class:`locale`:
* The :func:`~locale.getdefaultlocale` function