From: Raymond Hettinger Date: Sat, 26 Oct 2002 03:15:03 +0000 (+0000) Subject: Clarify packages in tutorial. Closes SF bug #616211. X-Git-Tag: v2.2.3c1~272 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=1aaec815f13c20092761f85763d49cd9f33a1d0f;p=thirdparty%2FPython%2Fcpython.git Clarify packages in tutorial. Closes SF bug #616211. --- diff --git a/Doc/tut/tut.tex b/Doc/tut/tut.tex index 07cda7b84d9b..61d469200555 100644 --- a/Doc/tut/tut.tex +++ b/Doc/tut/tut.tex @@ -2543,6 +2543,10 @@ Sound/ Top-level package ... \end{verbatim} +When importing the package, Python searchs through the directories +on \code{sys.path} looking for a subdirectory containing the +top-level package. + 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