[Python-checkins] gh-77521: Add link to builtin module names in modules tutorial (#92438)
JelleZijlstra
webhook-mailer at python.org
Sun May 8 15:30:54 EDT 2022
https://github.com/python/cpython/commit/859250cc55711f4d62b65922d3f7537826c3801e
commit: 859250cc55711f4d62b65922d3f7537826c3801e
branch: main
author: slateny <46876382+slateny at users.noreply.github.com>
committer: JelleZijlstra <jelle.zijlstra at gmail.com>
date: 2022-05-08T12:30:38-07:00
summary:
gh-77521: Add link to builtin module names in modules tutorial (#92438)
Co-authored-by: Jelle Zijlstra <jelle.zijlstra at gmail.com>
files:
M Doc/tutorial/modules.rst
diff --git a/Doc/tutorial/modules.rst b/Doc/tutorial/modules.rst
index 524d3c32417b9..d6f2464ae0829 100644
--- a/Doc/tutorial/modules.rst
+++ b/Doc/tutorial/modules.rst
@@ -183,7 +183,8 @@ The Module Search Path
.. index:: triple: module; search; path
When a module named :mod:`spam` is imported, the interpreter first searches for
-a built-in module with that name. If not found, it then searches for a file
+a built-in module with that name. These module names are listed in
+:data:`sys.builtin_module_names`. If not found, it then searches for a file
named :file:`spam.py` in a list of directories given by the variable
:data:`sys.path`. :data:`sys.path` is initialized from these locations:
More information about the Python-checkins
mailing list