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):
425
425
When importing the package, Python searches through the directories on
426
426
``sys.path `` looking for the package subdirectory.
427
427
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
431
431
on the module search path. In the simplest case, :file: `__init__.py ` can just be
432
432
an empty file, but it can also execute initialization code for the package or
433
433
set the ``__all__ `` variable, described later.
You can’t perform that action at this time.
0 commit comments