mirror of
https://github.com/python/cpython.git
synced 2025-07-24 03:35:53 +00:00
Clarify packages in tutorial. Closes SF bug #616211.
This commit is contained in:
parent
0eebd5cef9
commit
7fbd01262c
1 changed files with 3 additions and 0 deletions
|
@ -2556,6 +2556,9 @@ Sound/ Top-level package
|
|||
...
|
||||
\end{verbatim}
|
||||
|
||||
When importing the package, Python searchs through the directories
|
||||
on \code{sys.path} looking for the package subdirectory.
|
||||
|
||||
The \file{__init__.py} files are required to make Python treat the
|
||||
directories as containing packages; this is done to prevent
|
||||
directories with a common name, such as \samp{string}, from
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue