File tree Expand file tree Collapse file tree 1 file changed +3
-3
lines changed
Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -425,9 +425,9 @@ your package (expressed in terms of a hierarchical filesystem):
425425 When importing the package, Python searches through the directories on
426426``sys.path `` looking for the package subdirectory.
427427
428- The :file: `__init__.py ` files are required to make Python treat the directories
429- as containing packages; this is done to prevent directories with a common name,
430- such as ``string ``, from unintentionally hiding valid modules that occur later
428+ The :file: `__init__.py ` files are required to make Python treat directories
429+ containing the file as packages. This prevents directories with a common name,
430+ such as ``string ``, unintentionally hiding valid modules that occur later
431431on the module search path. In the simplest case, :file: `__init__.py ` can just be
432432an empty file, but it can also execute initialization code for the package or
433433set the ``__all__ `` variable, described later.
You can’t perform that action at this time.
0 commit comments