From 2cefb3cf964afa1f269509bba6e6fc664f3d5435 Mon Sep 17 00:00:00 2001 From: Brett Cannon Date: Sat, 25 May 2013 11:26:11 -0400 Subject: [PATCH] Various tweaks to importlib docs. --- Doc/library/importlib.rst | 11 ++++++++--- 1 file changed, 8 insertions(+), 3 deletions(-) diff --git a/Doc/library/importlib.rst b/Doc/library/importlib.rst index 0abf5e85bd8..6f1899f3f50 100644 --- a/Doc/library/importlib.rst +++ b/Doc/library/importlib.rst @@ -238,6 +238,10 @@ ABC hierarchy:: The path to where the module data is stored (not set for built-in 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__` A list of strings specifying the search path within a package. This attribute is not set on modules. @@ -407,7 +411,8 @@ ABC hierarchy:: automatically. 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) @@ -668,8 +673,8 @@ find and load modules. specified by *fullname* on :data:`sys.path` or, if defined, on *path*. For each path entry that is searched, :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 - being searched for. If no entry is found in + found then it is used as the :term:`path entry finder` to look for the + module being searched for. If no entry is found in :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 :data:`sys.path_importer_cache` along with being queried about the