[Python-checkins] bpo-35325: Doc: imp.find_module() return value documentation discrepancy (GH-11040)

Miss Islington (bot) webhook-mailer at python.org
Thu Sep 12 08:25:58 EDT 2019


https://github.com/python/cpython/commit/14afe203d6937069c66b7e9c4a9fc0db49b32c19
commit: 14afe203d6937069c66b7e9c4a9fc0db49b32c19
branch: 3.8
author: Miss Islington (bot) <31488909+miss-islington at users.noreply.github.com>
committer: GitHub <noreply at github.com>
date: 2019年09月12日T05:25:54-07:00
summary:
bpo-35325: Doc: imp.find_module() return value documentation discrepancy (GH-11040)
(cherry picked from commit 967b84c913c7b09ae2fc86272cb9373415e2beaf)
Co-authored-by: Windson yang <wiwindson at outlook.com>
files:
M Doc/library/imp.rst
diff --git a/Doc/library/imp.rst b/Doc/library/imp.rst
index 04f207f58d38..f5ad8c722964 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`.


More information about the Python-checkins mailing list

AltStyle によって変換されたページ (->オリジナル) /