Skip to content

Commit d8f425f

Browse files
Update packaging-projects.rst: rephrase first explanation of __init.py__
1 parent 595f76d commit d8f425f

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

source/tutorials/packaging-projects.rst

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -54,8 +54,10 @@ Create the following file structure locally:
5454
The directory containing the Python files should match the project name. This
5555
simplifies the configuration and is more obvious to users who install the package.
5656

57-
:file:`__init__.py` is recommended to import the directory as a regular package,
58-
even if as is our case for this tutorial that file is empty [#namespace-packages]_.
57+
Creating the file :file:`__init__.py` is recommended because the existence of a
58+
:file:`__init__.py` file allows users to import the directory as a regular package,
59+
even if (as is the case for this tutorial) :file:`__init__.py` is empty.
60+
[#namespace-packages]_
5961

6062
:file:`example.py` is an example of a module within the package that could
6163
contain the logic (functions, classes, constants, etc.) of your package.

0 commit comments

Comments
 (0)