mirror of
https://github.com/python/cpython
synced 2026-09-29 09:40:29 +03:00
bpo-35325: Doc: imp.find_module() return value documentation discrepancy (GH-11040)
This commit is contained in:
parent
64117e059b
commit
967b84c913
1 changed files with 5 additions and 6 deletions
|
|
@ -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`.
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue