diff options
author | Windson yang <wiwindson@outlook.com> | 2019-09-12 12:10:50 (GMT) |
---|---|---|
committer | Julien Palard <julien@palard.fr> | 2019-09-12 12:10:50 (GMT) |
commit | 967b84c913c7b09ae2fc86272cb9373415e2beaf (patch) | |
tree | 8dd336776be61694243b99485cd7b0af41b52574 /Doc | |
parent | 64117e059b79236c7345bc9afc1cc707162411de (diff) | |
download | cpython-967b84c913c7b09ae2fc86272cb9373415e2beaf.zip cpython-967b84c913c7b09ae2fc86272cb9373415e2beaf.tar.gz cpython-967b84c913c7b09ae2fc86272cb9373415e2beaf.tar.bz2 |
bpo-35325: Doc: imp.find_module() return value documentation discrepancy (GH-11040)
Diffstat (limited to 'Doc')
-rw-r--r-- | Doc/library/imp.rst | 11 |
1 files changed, 5 insertions, 6 deletions
diff --git a/Doc/library/imp.rst b/Doc/library/imp.rst index 04f207f..f5ad8c7 100644 --- a/Doc/library/imp.rst +++ b/Doc/library/imp.rst @@ -66,12 +66,11 @@ This module provides an interface to the mechanisms used to implement the contained in the list returned by :func:`get_suffixes` describing the kind of module found. - If the module does not live in a file, the returned *file* is ``None``, - *pathname* is the empty string, and the *description* tuple contains empty - strings for its suffix and mode; the module type is indicated as given in - parentheses above. If the search is unsuccessful, :exc:`ImportError` is - raised. Other exceptions indicate problems with the arguments or - environment. + If the module is built-in or frozen then *file* and *pathname* are both ``None`` + and the *description* tuple contains empty strings for its suffix and mode; + the module type is indicated as given in parentheses above. If the search + is unsuccessful, :exc:`ImportError` is raised. Other exceptions indicate + problems with the arguments or environment. If the module is a package, *file* is ``None``, *pathname* is the package path and the last item in the *description* tuple is :const:`PKG_DIRECTORY`. |