[docs] [issue11948] Tutorial/Modules - small fix to better clarify the modules search path

Terry J. Reedy report at bugs.python.org
Sat Apr 30 01:28:50 CEST 2011


Terry J. Reedy <tjreedy at udel.edu> added the comment:

I believe the patch produces the following as the first sentence

"When a module named :mod:`spam` is imported, the interpreter searches for a file named :file:`spam.py` in a list of directories given by the variable ``sys.path`` which is initialized from the directory containing the input script (or the current directory), :envvar:`PYTHONPATH` (a list of directory names, with the same syntax as the shell variable :envvar:`PATH`) and the installation-dependent default."

This is more that a 'mouthful', especially for a tutorial, and I think is should be split into two:
variable ``sys.path``.  ``Sys.path`` is initialized ...

----------
nosy: +terry.reedy

_______________________________________
Python tracker <report at bugs.python.org>
<http://bugs.python.org/issue11948>
_______________________________________


More information about the docs mailing list