Skip to content

Commit 859250c

Browse files
gh-77521: Add link to builtin module names in modules tutorial (#92438)
Co-authored-by: Jelle Zijlstra <[email protected]>
1 parent 9304f98 commit 859250c

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

Doc/tutorial/modules.rst

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -183,7 +183,8 @@ The Module Search Path
183183
.. index:: triple: module; search; path
184184

185185
When a module named :mod:`spam` is imported, the interpreter first searches for
186-
a built-in module with that name. If not found, it then searches for a file
186+
a built-in module with that name. These module names are listed in
187+
:data:`sys.builtin_module_names`. If not found, it then searches for a file
187188
named :file:`spam.py` in a list of directories given by the variable
188189
:data:`sys.path`. :data:`sys.path` is initialized from these locations:
189190

0 commit comments

Comments
 (0)