[issue43540] importlib: Document how to replace load_module() in What's New in Python 3.10

Brett Cannon report at bugs.python.org
Thu Mar 18 14:32:12 EDT 2021


Brett Cannon <brett at python.org> added the comment:

The documentation states in the deprecation notice for https://docs.python.org/3/library/importlib.html#importlib.abc.Loader.load_module that create_module() and exec_module() are what are necessary. But the it isn't a direct 1:1 replacement and people are expected to use all of the helper code so it's going to be very specific to the need of the code.

----------

_______________________________________
Python tracker <report at bugs.python.org>
<https://bugs.python.org/issue43540>
_______________________________________


More information about the Python-bugs-list mailing list