https://github.com/python/cpython/commit/9a170c6229dd297dde05b511ec0b0b1acd00d6ad commit: 9a170c6229dd297dde05b511ec0b0b1acd00d6ad branch: 3.15 author: Miss Islington (bot) <[email protected]> committer: hugovk <[email protected]> date: 2026-09-05T15:58:03+01:00 summary:
[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 7d71b3eae3cc297af3a55a30fccc85da5adeea7a) Co-authored-by: Petr Viktorin <[email protected]> files: M Doc/whatsnew/3.15.rst diff --git a/Doc/whatsnew/3.15.rst b/Doc/whatsnew/3.15.rst index 54ffbf776262b8..29b76aede708af 100644 --- a/Doc/whatsnew/3.15.rst +++ b/Doc/whatsnew/3.15.rst @@ -2113,6 +2113,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]
