Skip to content

Commit 9a170c6

Browse files
[3.15] gh-97850: Add load_module() removal to 3.15 What's New (GH-156418) (#156935)
gh-97850: Add load_module() removal to 3.15 What's New (GH-156418) (cherry picked from commit 7d71b3e) Co-authored-by: Petr Viktorin <encukou@gmail.com>
1 parent b84efc6 commit 9a170c6

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
@@ -2113,6 +2113,17 @@ http.server
21132113
(Contributed by Bénédikt Tran in :gh:`133810`.)
21142114

21152115

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

0 commit comments

Comments
 (0)