mirror of
https://github.com/python/cpython.git
synced 2025-11-03 11:23:31 +00:00
gh-102703: Fix typo in modules tutorial documentation (GH-102707)
**Before** This prevents directories with a common name, such as ``string``, unintentionally hiding ... **After** This prevents directories with a common name, such as ``string``, from unintentionally hiding ...
This commit is contained in:
parent
152292b98f
commit
0a539b5db3
1 changed files with 1 additions and 1 deletions
|
|
@ -438,7 +438,7 @@ When importing the package, Python searches through the directories on
|
||||||
|
|
||||||
The :file:`__init__.py` files are required to make Python treat directories
|
The :file:`__init__.py` files are required to make Python treat directories
|
||||||
containing the file as packages. This prevents directories with a common name,
|
containing the file as packages. This prevents directories with a common name,
|
||||||
such as ``string``, unintentionally hiding valid modules that occur later
|
such as ``string``, from unintentionally hiding valid modules that occur later
|
||||||
on the module search path. In the simplest case, :file:`__init__.py` can just be
|
on the module search path. In the simplest case, :file:`__init__.py` can just be
|
||||||
an empty file, but it can also execute initialization code for the package or
|
an empty file, but it can also execute initialization code for the package or
|
||||||
set the ``__all__`` variable, described later.
|
set the ``__all__`` variable, described later.
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue