File tree 5 files changed +14
-5
lines changed
Misc/NEWS.d/next/Core_and_Builtins
5 files changed +14
-5
lines changed Original file line number Diff line number Diff line change @@ -47,9 +47,6 @@ Pending Removal in Python 3.14
47
47
* :mod: `email `: Deprecated the *isdst * parameter in :func: `email.utils.localtime `.
48
48
(Contributed by Alan Williams in :gh: `72346 `.)
49
49
50
- * :mod: `importlib `: ``__package__ `` and ``__cached__ `` will cease to be set or
51
- taken into consideration by the import system (:gh: `97879 `).
52
-
53
50
* :mod: `importlib.abc ` deprecated classes:
54
51
55
52
* :class: `!importlib.abc.ResourceReader `
Original file line number Diff line number Diff line change @@ -17,6 +17,9 @@ Pending Removal in Python 3.15
17
17
* The :option: `!--cgi ` flag to the :program: `python -m http.server `
18
18
command-line interface has been deprecated since Python 3.13.
19
19
20
+ * :mod: `importlib `: ``__package__ `` and ``__cached__ `` will cease to be set or
21
+ taken into consideration by the import system (:gh: `97879 `).
22
+
20
23
* :class: `locale `:
21
24
22
25
* The :func: `~locale.getdefaultlocale ` function
Original file line number Diff line number Diff line change @@ -1237,8 +1237,8 @@ find and load modules.
1237
1237
.. attribute :: has_location
1238
1238
1239
1239
``True `` if the spec's :attr: `origin ` refers to a loadable location,
1240
- ``False `` otherwise. This value impacts how :attr: `origin ` is interpreted
1241
- and how the module's :attr: `__file__ ` is populated.
1240
+ ``False `` otherwise. This value impacts how :attr: `origin ` is interpreted
1241
+ and how the module's :attr: `__file__ ` is populated.
1242
1242
1243
1243
1244
1244
.. class :: AppleFrameworkLoader(name, path)
Original file line number Diff line number Diff line change @@ -596,6 +596,10 @@ listed below.
596
596
Raise :exc: `DeprecationWarning ` instead of :exc: `ImportWarning `
597
597
when falling back to ``__package__ ``.
598
598
599
+ .. deprecated-removed :: 3.13 3.15
600
+ ``__package__ `` will cease to be set or taken into consideration
601
+ by the import system or standard library.
602
+
599
603
600
604
.. attribute :: __spec__
601
605
@@ -653,6 +657,10 @@ listed below.
653
657
It is **strongly ** recommended that you rely on :attr: `__spec__ `
654
658
instead of ``__cached__ ``.
655
659
660
+ .. deprecated-removed :: 3.13 3.15
661
+ ``__cached__ `` will cease to be set or taken into consideration
662
+ by the import system or standard library.
663
+
656
664
.. _package-path-rules :
657
665
658
666
module.__path__
Original file line number Diff line number Diff line change
1
+ Deprecate the setting and using ``__package__ `` and ``__cached__ ``.
You can’t perform that action at this time.
0 commit comments