Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit 2cefb3c

Browse files
committed
Various tweaks to importlib docs.
1 parent 4ace240 commit 2cefb3c

1 file changed

Lines changed: 8 additions & 3 deletions

File tree

Doc/library/importlib.rst

Lines changed: 8 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -238,6 +238,10 @@ ABC hierarchy::
238238
The path to where the module data is stored (not set for built-in
239239
modules).
240240

241+
- :attr:`__cached__`
242+
The path to where a compiled version of the module is/should be
243+
stored (not set when the attribute would be inappropriate).
244+
241245
- :attr:`__path__`
242246
A list of strings specifying the search path within a
243247
package. This attribute is not set on modules.
@@ -407,7 +411,8 @@ ABC hierarchy::
407411
automatically.
408412

409413
When writing to the path fails because the path is read-only
410-
(:attr:`errno.EACCES`), do not propagate the exception.
414+
(:attr:`errno.EACCES`/:exc:`PermissionError`), do not propagate the
415+
exception.
411416

412417
.. method:: get_code(fullname)
413418

@@ -668,8 +673,8 @@ find and load modules.
668673
specified by *fullname* on :data:`sys.path` or, if defined, on
669674
*path*. For each path entry that is searched,
670675
:data:`sys.path_importer_cache` is checked. If a non-false object is
671-
found then it is used as the :term:`finder` to look for the module
672-
being searched for. If no entry is found in
676+
found then it is used as the :term:`path entry finder` to look for the
677+
module being searched for. If no entry is found in
673678
:data:`sys.path_importer_cache`, then :data:`sys.path_hooks` is
674679
searched for a finder for the path entry and, if found, is stored in
675680
:data:`sys.path_importer_cache` along with being queried about the

0 commit comments

Comments
 (0)