https://github.com/python/cpython/commit/7d71b3eae3cc297af3a55a30fccc85da5adeea7a
commit: 7d71b3eae3cc297af3a55a30fccc85da5adeea7a
branch: main
author: Petr Viktorin <[email protected]>
committer: encukou <[email protected]>
date: 2026-09-04T15:21:01+02:00
summary:

gh-97850: Add load_module() removal to 3.15 What's New (GH-156418)

files:
M Doc/whatsnew/3.15.rst

diff --git a/Doc/whatsnew/3.15.rst b/Doc/whatsnew/3.15.rst
index bf9aceaa20b2b47..118d9b3e32b28f8 100644
--- a/Doc/whatsnew/3.15.rst
+++ b/Doc/whatsnew/3.15.rst
@@ -2114,6 +2114,17 @@ http.server
   (Contributed by Bénédikt Tran in :gh:`133810`.)
 
 
+importlib
+---------
+
+* The ``load_module()`` methods of :class:`~importlib.abc.Loader` and its
+  subclasses is removed.
+  The import system will no longer call it when defined on custom subclasses.
+  The method has been deprecated in favor of
+  :meth:`~importlib.abc.Loader.exec_module` since Python 3.4.
+  (Contributed by Brett Cannon in :gh:`97850`.)
+
+
 importlib.resources
 -------------------
 

_______________________________________________
Python-checkins mailing list -- [email protected]
To unsubscribe send an email to [email protected]
https://mail.python.org/mailman3//lists/python-checkins.python.org
Member address: [email protected]

Reply via email to