]> granicus.if.org Git - python/commitdiff
bpo-35325: Doc: imp.find_module() return value documentation discrepancy (GH-11040)
authorMiss Islington (bot) <31488909+miss-islington@users.noreply.github.com>
Thu, 12 Sep 2019 12:25:54 +0000 (05:25 -0700)
committerGitHub <noreply@github.com>
Thu, 12 Sep 2019 12:25:54 +0000 (05:25 -0700)
(cherry picked from commit 967b84c913c7b09ae2fc86272cb9373415e2beaf)

Co-authored-by: Windson yang <wiwindson@outlook.com>
Doc/library/imp.rst

index 04f207f58d38daa0ad5f061bdad8d7a5043cfe47..f5ad8c7229644fc93e97acbd7fd05846b6fc5fd8 100644 (file)
@@ -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`.