File tree Expand file tree Collapse file tree 1 file changed +2
-1
lines changed Expand file tree Collapse file tree 1 file changed +2
-1
lines changed Original file line number Diff line number Diff line change @@ -437,7 +437,8 @@ When importing the package, Python searches through the directories on
437437``sys.path `` looking for the package subdirectory.
438438
439439The :file: `__init__.py ` files are required to make Python treat directories
440- containing the file as packages. This prevents directories with a common name,
440+ containing the file as packages (unless using a :term: `namespace package `, a
441+ relatively advanced feature). This prevents directories with a common name,
441442such as ``string ``, from unintentionally hiding valid modules that occur later
442443on the module search path. In the simplest case, :file: `__init__.py ` can just be
443444an empty file, but it can also execute initialization code for the package or
You can’t perform that action at this time.
0 commit comments