]> git.ipfire.org Git - thirdparty/Python/cpython.git/commitdiff
gh-77521: Add link to builtin module names in modules tutorial (GH-92438)
authorMiss Islington (bot) <31488909+miss-islington@users.noreply.github.com>
Sun, 8 May 2022 19:45:14 +0000 (12:45 -0700)
committerGitHub <noreply@github.com>
Sun, 8 May 2022 19:45:14 +0000 (12:45 -0700)
Co-authored-by: Jelle Zijlstra <jelle.zijlstra@gmail.com>
(cherry picked from commit 859250cc55711f4d62b65922d3f7537826c3801e)

Co-authored-by: slateny <46876382+slateny@users.noreply.github.com>
Doc/tutorial/modules.rst

index 524d3c32417b920ac64b785156ae85d7acca9e2e..d6f2464ae0829c5e35783c5c675a5d8580f9da31 100644 (file)
@@ -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: