Commit 2cefb3cf authored by Brett Cannon's avatar Brett Cannon

Various tweaks to importlib docs.

parent 4ace240f
...@@ -238,6 +238,10 @@ ABC hierarchy:: ...@@ -238,6 +238,10 @@ ABC hierarchy::
The path to where the module data is stored (not set for built-in The path to where the module data is stored (not set for built-in
modules). modules).
- :attr:`__cached__`
The path to where a compiled version of the module is/should be
stored (not set when the attribute would be inappropriate).
- :attr:`__path__` - :attr:`__path__`
A list of strings specifying the search path within a A list of strings specifying the search path within a
package. This attribute is not set on modules. package. This attribute is not set on modules.
...@@ -407,7 +411,8 @@ ABC hierarchy:: ...@@ -407,7 +411,8 @@ ABC hierarchy::
automatically. automatically.
When writing to the path fails because the path is read-only When writing to the path fails because the path is read-only
(:attr:`errno.EACCES`), do not propagate the exception. (:attr:`errno.EACCES`/:exc:`PermissionError`), do not propagate the
exception.
.. method:: get_code(fullname) .. method:: get_code(fullname)
...@@ -668,8 +673,8 @@ find and load modules. ...@@ -668,8 +673,8 @@ find and load modules.
specified by *fullname* on :data:`sys.path` or, if defined, on specified by *fullname* on :data:`sys.path` or, if defined, on
*path*. For each path entry that is searched, *path*. For each path entry that is searched,
:data:`sys.path_importer_cache` is checked. If a non-false object is :data:`sys.path_importer_cache` is checked. If a non-false object is
found then it is used as the :term:`finder` to look for the module found then it is used as the :term:`path entry finder` to look for the
being searched for. If no entry is found in module being searched for. If no entry is found in
:data:`sys.path_importer_cache`, then :data:`sys.path_hooks` is :data:`sys.path_importer_cache`, then :data:`sys.path_hooks` is
searched for a finder for the path entry and, if found, is stored in searched for a finder for the path entry and, if found, is stored in
:data:`sys.path_importer_cache` along with being queried about the :data:`sys.path_importer_cache` along with being queried about the
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment