Skip to content

Commit 09b6994

Browse files
committed
Add load_module() removal to 3.15 What's New
1 parent f54fd2a commit 09b6994

1 file changed

Lines changed: 11 additions & 0 deletions

File tree

Doc/whatsnew/3.15.rst

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2114,6 +2114,17 @@ http.server
21142114
(Contributed by Bénédikt Tran in :gh:`133810`.)
21152115

21162116

2117+
importlib
2118+
---------
2119+
2120+
* The ``load_module()`` methods of :class:`~importlib.abc.Loader` and its
2121+
subclasses is removed.
2122+
The import system will no longer call it when defined on custom subclasses.
2123+
The method has been deprecated in favor of
2124+
:meth:`~importlib.abc.Loader.exec_module()` since Python 3.4.
2125+
(Contributed by Brett Cannon in :gh:`97850`.)
2126+
2127+
21172128
importlib.resources
21182129
-------------------
21192130

0 commit comments

Comments
 (0)