[issue45592] NamespaceLoader does not implement create_module or exec_module

2021-10-25 Thread Brett Cannon
Brett Cannon added the comment: create_module() being empty is on purpose: https://docs.python.org/3/library/importlib.html#importlib.abc.Loader.create_module . You only define create_module() if you need a specific type of object for the module instance. --

[issue45592] NamespaceLoader does not implement create_module or exec_module

2021-10-23 Thread Filipe Laíns
New submission from Filipe Laíns : NamespaceLoader currently does not implement create_module or exec_module, which is problematic since load_module is deprecated. The create_module docstring is the same as _LoaderBasics: ``` def create_module(self, spec): """Use default semantics for