@@ -1028,10 +1028,10 @@ this approach.
1028
1028
Previously the attribute was optional.
1029
1029
1030
1030
.. deprecated-removed :: 3.12 3.14
1031
- The value of :attr: `!module__loader__ ` is expected to be the same as
1032
- :attr: `__spec__.loader <importlib.machinery.ModuleSpec.loader> `.
1033
- The use of :attr: `!module.__loader__ ` is deprecated and slated for
1034
- removal in Python 3.14 .
1031
+ Setting :attr: `!__loader__ ` on a module while failing to set
1032
+ :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 .
1035
1035
1036
1036
.. attribute :: module.__path__
1037
1037
@@ -1077,8 +1077,10 @@ this approach.
1077
1077
instead of :attr: `!module.__cached__ `.
1078
1078
1079
1079
.. deprecated-removed :: 3.13 3.15
1080
- :attr: `!__cached__ ` will cease to be set or taken into consideration
1081
- by the import system or standard library.
1080
+ Setting :attr: `!__cached__ ` on a module while failing to set
1081
+ :attr: `!__spec__.cached ` is deprecated. In Python 3.15,
1082
+ :attr: `!__cached__ ` will cease to be set or taken into consideration by
1083
+ the import system or standard library.
1082
1084
1083
1085
Other writable attributes on module objects
1084
1086
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
0 commit comments