mirror of
https://github.com/python/cpython.git
synced 2025-08-03 16:39:00 +00:00
gh-77521: Add link to builtin module names in modules tutorial (#92438)
Co-authored-by: Jelle Zijlstra <jelle.zijlstra@gmail.com>
This commit is contained in:
parent
9304f98558
commit
859250cc55
1 changed files with 2 additions and 1 deletions
|
@ -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:
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue