File tree 2 files changed +13
-10
lines changed
2 files changed +13
-10
lines changed Original file line number Diff line number Diff line change @@ -6,7 +6,12 @@ Pending Removal in Python 3.15
6
6
* Setting :attr: `~module.__cached__ ` on a module while
7
7
failing to set :attr: `__spec__.cached <importlib.machinery.ModuleSpec.cached> `
8
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.
9
+ take into consideration by the import system or standard library. (:gh: `97879 `)
10
+
11
+ * Setting :attr: `~module.__package__ ` on a module while
12
+ failing to set :attr: `__spec__.parent <importlib.machinery.ModuleSpec.parent> `
13
+ is deprecated. In Python 3.15, :attr: `!__package__ ` will cease to be set or
14
+ take into consideration by the import system or standard library. (:gh: `97879 `)
10
15
11
16
* :mod: `ctypes `:
12
17
@@ -24,9 +29,6 @@ Pending Removal in Python 3.15
24
29
* The :option: `!--cgi ` flag to the :program: `python -m http.server `
25
30
command-line interface has been deprecated since Python 3.13.
26
31
27
- * :mod: `importlib `: ``__package__ `` and ``__cached__ `` will cease to be set or
28
- taken into consideration by the import system (:gh: `97879 `).
29
-
30
32
* :class: `locale `:
31
33
32
34
* The :func: `~locale.getdefaultlocale ` function
Original file line number Diff line number Diff line change @@ -1309,14 +1309,15 @@ Deprecated
1309
1309
may be removed in a future version of Python. Use the single-arg versions
1310
1310
of these functions instead. (Contributed by Ofey Chan in :gh: `89874 `.)
1311
1311
1312
- * :exc: `DeprecationWarning ` is now raised when ``__package__ `` on a
1313
- module differs from ``__spec__.parent `` (previously it was
1314
- :exc: `ImportWarning `).
1312
+ * :exc: `DeprecationWarning ` is now raised when :attr: `~module.__package__ ` on a
1313
+ module differs from
1314
+ :attr: `__spec__.parent <importlib.machinery.ModuleSpec.parent> ` (previously
1315
+ it was :exc: `ImportWarning `).
1315
1316
(Contributed by Brett Cannon in :gh: `65961 `.)
1316
1317
1317
- * Setting `` __package__ `` or `` __cached__ `` on a module is deprecated,
1318
- and will cease to be set or taken into consideration by the import system in Python 3.14.
1319
- (Contributed by Brett Cannon in :gh: `65961 `.)
1318
+ * Setting :attr: ` ~module. __package__` ` or :attr: ` ~module. __cached__ ` on a
1319
+ module is deprecated, and will cease to be set or taken into consideration by
1320
+ the import system in Python 3.14. (Contributed by Brett Cannon in :gh: `65961 `.)
1320
1321
1321
1322
* The bitwise inversion operator (``~ ``) on bool is deprecated. It will throw an
1322
1323
error in Python 3.16. Use ``not `` for logical negation of bools instead.
You can’t perform that action at this time.
0 commit comments