Loads the extension module if and only if *fullname* is the same as
:attr:`name` or is ``None``.
.. note::
Due to limitations in the extension module C-API, for now
ExtensionFileLoader does not implement :meth:`Loader.exec_module`.
.. method:: is_package(fullname)
Returns ``True`` if the file path points to a package's``__init__``
...
...
@@ -1026,11 +1148,17 @@ an :term:`importer`.
Set ``__loader__`` if set to ``None``, as if the attribute does not
exist.
.. deprecated:: 3.4
The import machinery takes care of this automatically.
.. decorator:: set_package
A :term:`decorator` for :meth:`importlib.abc.Loader.load_module` to set the :attr:`__package__` attribute on the returned module. If :attr:`__package__`
is set and has a value other than ``None`` it will not be changed.
.. deprecated:: 3.4
The import machinery takes care of this automatically.