Skip to content

Commit

Permalink
pythongh-77521: Add link to builtin module names in modules tutorial (p…
Browse files Browse the repository at this point in the history
…ythonGH-92438)

Co-authored-by: Jelle Zijlstra <jelle.zijlstra@gmail.com>
(cherry picked from commit 859250c)

Co-authored-by: slateny <46876382+slateny@users.noreply.github.com>
  • Loading branch information
slateny authored and miss-islington committed May 8, 2022
1 parent 4270b79 commit d647543
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion Doc/tutorial/modules.rst
Expand Up @@ -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:

Expand Down

0 comments on commit d647543

Please sign in to comment.