summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMiss Islington (bot) <31488909+miss-islington@users.noreply.github.com>2022-05-08 19:50:28 (GMT)
committerGitHub <noreply@github.com>2022-05-08 19:50:28 (GMT)
commit0dd32b52c77beb40a0befb76da94e95f90260e45 (patch)
treeb7565be7f21e39a89ddcec266bd05bb0daa8b1a0
parent8e523c1151a4a6a1a239238dfd0cdae51e815dfe (diff)
downloadcpython-0dd32b52c77beb40a0befb76da94e95f90260e45.zip
cpython-0dd32b52c77beb40a0befb76da94e95f90260e45.tar.gz
cpython-0dd32b52c77beb40a0befb76da94e95f90260e45.tar.bz2
gh-77521: Add link to builtin module names in modules tutorial (GH-92438)
Co-authored-by: Jelle Zijlstra <jelle.zijlstra@gmail.com> (cherry picked from commit 859250cc55711f4d62b65922d3f7537826c3801e) Co-authored-by: slateny <46876382+slateny@users.noreply.github.com>
-rw-r--r--Doc/tutorial/modules.rst3
1 files changed, 2 insertions, 1 deletions
diff --git a/Doc/tutorial/modules.rst b/Doc/tutorial/modules.rst
index afce7f8..c5cca91 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: