Lines Matching refs:exec_module
346 # It is assumed 'exec_module' will also be defined on the loader.
359 elif not hasattr(spec.loader, 'exec_module'):
365 spec.loader.exec_module(module)
400 * The module created during loading and passed to exec_module() may
412 The import machinery calls the :meth:`importlib.abc.Loader.exec_module`
414 returned from :meth:`~importlib.abc.Loader.exec_module` is ignored.
424 :meth:`~importlib.abc.Loader.exec_module` will be propagated.
442 :meth:`~importlib.abc.Loader.exec_module` and the import
447 not also implement ``exec_module()``. However, ``load_module()`` has been
448 deprecated and loaders should implement ``exec_module()`` instead.
470 A :exc:`DeprecationWarning` is raised when ``exec_module()`` is defined but
474 An :exc:`ImportError` is raised when ``exec_module()`` is defined but