summaryrefslogtreecommitdiff
path: root/Doc/tutorial
diff options
context:
space:
mode:
authorslateny <46876382+slateny@users.noreply.github.com>2022-05-08 12:30:38 -0700
committerGitHub <noreply@github.com>2022-05-08 12:30:38 -0700
commit859250cc55711f4d62b65922d3f7537826c3801e (patch)
treef7c6d65968aa8b3e48004d6b9ccf27998317fa5e /Doc/tutorial
parent9304f9855852f8cc823534b954206181b933065e (diff)
downloadcpython-git-859250cc55711f4d62b65922d3f7537826c3801e.tar.gz
gh-77521: Add link to builtin module names in modules tutorial (#92438)
Co-authored-by: Jelle Zijlstra <jelle.zijlstra@gmail.com>
Diffstat (limited to 'Doc/tutorial')
-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 524d3c3241..d6f2464ae0 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: